Time.captureFramerate Manual     Reference     Scripting  
Scripting > Runtime Classes > Time
Time.captureFramerate

static var captureFramerate : int

Description

If captureFramerate is set to a value larger than 0, time will advance in

(1.0 / captureFramerate) per frame regardless of real time. This is useful if you want to capture a movie where you need a constant frame rate.

JavaScripts
using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
Time.captureFramerate = 25;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
Time.captureFramerate = 25