Skip to content

Time

The Time class provides time information obtained from the editor.

静态变量

Time.realTimeSinceStartUp : number
The real time since the game started, ignoring any time spent paused.
Time.frameTime : number
The total time elapsed since the start of the game.
Time.frameCount : number
The total number of frames since the game started.
Time.deltaTime : number
(只读)从上一帧到当前帧的时间间隔(以秒为单位)。
Time.unscaledDeltaTime : number
The fixed frame rate increment time (in seconds) that is not affected by the time scale.
Time.timeScale : number
The scaling factor of the current game time.
Time.fixedDeltaTime : number
The time interval (in seconds) at which physics and other fixed frame rate updates are performed.
Time.invDeltaTime : number
The frame rate from the previous frame to the current frame.