Time
Provides an interface to get time information from Unity. Unity Time
Members
Static Properties
Name | Description |
---|---|
Time .captureDeltaTime | Slows game playback time to allow screenshots to be saved between frames. |
Time .captureFramerate | The reciprocal of Time.captureDeltaTime. |
Time .deltaTime | The completion time in seconds since the last frame (Read Only). |
Time .fixedDeltaTime | The interval in seconds at which physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate) are performed. |
Time .fixedTime | The time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game. |
Time .fixedUnscaledDeltaTime | The timeScale-independent interval in seconds from the last fixed frame to the current one (Read Only). |
Time .fixedUnscaledTime | The TimeScale-independant time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game. |
Time .frameCount | |
Time .inFixedTimeStep | Returns true if called inside a fixed time step callback (like MonoBehaviour's FixedUpdate), otherwise returns false. |
Time .maximumDeltaTime | The maximum time a frame can take. Physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate) will be performed only for this duration of time per frame. |
Time .maximumParticleDeltaTime | The maximum time a frame can spend on particle updates. If the frame takes longer than this, then updates are split into multiple smaller updates. |
Time .realtimeSinceStartup | The real time in seconds since the game started (Read Only). |
Time .smoothDeltaTime | A smoothed out Time.deltaTime (Read Only). |
Time .time | The time at the beginning of this frame (Read Only). This is the time in seconds since the start of the game. |
Time .timeScale | The scale at which time passes. This can be used for slow motion effects. |
Time .timeSinceLevelLoad | The time this frame has started (Read Only). This is the time in seconds since the last level has been loaded. |
Time .unscaledDeltaTime | The timeScale-independent interval in seconds from the last frame to the current one (Read Only). |
Time .unscaledTime | The timeScale-independant time for this frame (Read Only). This is the time in seconds since the start of the game. |