Time 时间


The interface to get time information from Unity.

从Unity获取时间信息的接口。

Class Variables类变量

  • time
    The time this frame has started (Read Only). This is the time in seconds since the start of the game.
          从游戏开始到到现在所用的时间(只读)。
  • timeSinceLevelLoad
    The time this frame has started (Read Only). This is the time in seconds since the last level has been loaded.
          此帧开始的时间(只读)。这是以秒计算到最后的关卡已经加载完的时间。
  • deltaTime
    The time in seconds it took to complete the last frame (Read Only).
          以秒计算,完成最后一帧的时间(只读)。
  • fixedTime
    The time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game.
          最近的FixedUpdate已开始的时间(只读)。这是以秒计自游戏开始的时间。
  • fixedDeltaTime
    The interval in seconds at which physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate) are performed.
          以秒计间隔,在物理和其他固定帧速率进行更新(像MonoBehaviour的FixedUpdate)。
  • maximumDeltaTime
    The maximum time a frame can take. Physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate)
          一帧能获得的最大时间。物理和其他固定帧速率更新(像FixedUpdate)。
  • smoothDeltaTime
    A smoothed out Time.deltaTime (Read Only).
          一个平滑淡出Time.deltaTime(只读)。
  • timeScale
    The scale at which the time is passing. This can be used for slow motion effects.
          传递时间的缩放。这可以用于减慢运动效果。
  • frameCount
    The total number of frames that have passed (Read Only).
          已经传递的帧的总数(只读)。
  • realtimeSinceStartup
    The real time in seconds since the game started (Read Only).
          以秒计,自游戏开始的实时时间(只读)。
  • captureFramerate
    If captureFramerate is set to a value larger than 0, time will advance in
          如果captureFramerate设置比0大的值,时间会在每帧 (1.0 / captureFramerate) 前进,不考虑真实时间。


,