Provides an interface to get time information from Unity.
This flowchart illustrates the general overview of the relationship between the main properties of the Time class.
For more information, see the Unity User Manual documentation on Order of execution for event functions.
captureDeltaTime | Slows your application’s playback time to allow Unity to save screenshots in between frames. |
captureFramerate | Time.captureDeltaTime 的倒数。 |
deltaTime | The interval in seconds from the last frame to the current one (Read Only). |
fixedDeltaTime | 执行物理和其他固定帧率更新(如 MonoBehaviour 的 FixedUpdate)的时间间隔(以秒为单位)。 |
fixedTime | The time since the last FixedUpdate started (Read Only). This is the time in seconds since the start of the game. |
fixedTimeAsDouble | The double precision time since the last FixedUpdate started (Read Only). This is the time in seconds since the start of the game. |
fixedUnscaledDeltaTime | The timeScale-independent interval in seconds from the last MonoBehaviour.FixedUpdate phase to the current one (Read Only). |
fixedUnscaledTime | The timeScale-independent time at the beginning of the last MonoBehaviour.FixedUpdate phase (Read Only). This is the time in seconds since the start of the game. |
fixedUnscaledTimeAsDouble | The double precision timeScale-independent time at the beginning of the last FixedUpdate (Read Only). This is the time in seconds since the start of the game. |
frameCount | The total number of frames since the start of the game (Read Only). |
inFixedTimeStep | 如果在固定时间步长回调(如 MonoBehaviour 的 FixedUpdate)内调用,则返回 true,否则返回 false。 |
maximumDeltaTime | The maximum value of Time.deltaTime in any given frame. This is a time in seconds that limits the increase of Time.time between two frames. |
maximumParticleDeltaTime | 帧可以在粒子更新上耗用的最长时间。如果帧耗用的时间超过该值,则将更新拆分为多个较小的更新。 |
realtimeSinceStartup | 游戏开始以来的实际时间(只读)。 |
realtimeSinceStartupAsDouble | The real time in seconds since the game started (Read Only). Double precision version of realtimeSinceStartup. |
smoothDeltaTime | 经过平滑处理的 Time.deltaTime(只读)。 |
time | The time at the beginning of this frame (Read Only). |
timeAsDouble | The double precision time at the beginning of this frame (Read Only). This is the time in seconds since the start of the game. |
timeScale | The scale at which time passes. |
timeSinceLevelLoad | The time since this frame started (Read Only). This is the time in seconds since the last non-additive scene has finished loading. |
timeSinceLevelLoadAsDouble | The double precision time since this frame started (Read Only). This is the time in seconds since the last non-additive scene has finished loading. |
unscaledDeltaTime | 从上一帧到当前帧的独立于 timeScale 的时间间隔(以秒为单位)(只读)。 |
unscaledTime | The timeScale-independent time for this frame (Read Only). This is the time in seconds since the start of the game. |
unscaledTimeAsDouble | The double precision timeScale-independent time for this frame (Read Only). This is the time in seconds since the start of the game. |