Manual     Reference     Scripting  
  
Scripting > Runtime Classes > Time   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Attributes
  • Enumerations
  • History
  • Index
  • Time
  • All Members
  • Class Variables
  • captureFramerate
  • deltaTime
  • fixedDeltaTime
  • fixedTime
  • frameCount
  • maximumDeltaTime
  • realtimeSinceStartup
  • smoothDeltaTime
  • time
  • timeScale
  • timeSinceLevelLoad

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.

JavaScript
Time.captureFramerate = 25;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
Time.captureFramerate = 25