Unity 3D Time 類
阿新 • • 發佈:2017-06-14
時間 one nbsp ren returns article atime .html ots
Time
class in UnityEngine
Description
The interface to get time information from Unity.
Static Variables
captureFramerate | Slows game playback time to allow screenshots to be saved between frames. 表示設置每秒的頻率而不考慮真實時間 |
deltaTime | The time in seconds it took to complete the last frame (Read Only).(只讀)表示系統從上一幀到當前幀的時間 以秒為單位 |
fixedDeltaTime | The interval in seconds at which physics and other fixed frame rate updates (like MonoBehaviour‘s FixedUpdate) are performed.表示以秒計間隔,在物理和其他固定幀率進行更新,在Edit->ProjectSettings->Time的Fixed Timestep可以自行設置。 |
fixedTime | The time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game.(只讀)表示以秒計遊戲開始的時間,固定時間以定期間隔更新(相當於fixedDeltaTime)直到達到time屬性。 |
fixedUnscaledDeltaTime | The timeScale-independent interval in seconds from the last fixed frame to the current one (Read Only).表示從上一個fixed frame 到現在的timescale-independent 時間 |
fixedUnscaledTime | The timeScale-independent time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game. |
frameCount | The total number of frames that have passed (Read Only). |
inFixedTimeStep | Returns true if called inside a fixed time step callback (like MonoBehaviour‘s FixedUpdate), otherwise returns false. |
maximumDeltaTime | The maximum time a frame can take. Physics and other fixed frame rate updates (like MonoBehaviour‘s FixedUpdate). |
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. |
realtimeSinceStartup | The real time in seconds since the game started (Read Only). |
smoothDeltaTime | A smoothed out Time.deltaTime (Read Only). |
time | The 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 the time is passing. This can be used for slow motion effects.時間縮放,默認值為1,若設置<1,表示時間減慢,若設置>1,表示時間加快,可以用來加速和減速遊戲,非常有用。 |
timeSinceLevelLoad | The time this frame has started (Read Only). This is the time in seconds since the last level has been loaded. |
unscaledDeltaTime | The timeScale-independent interval in seconds from the last frame to the current one (Read Only). |
unscaledTime | The timeScale-independent time for this frame (Read Only). This is the time in seconds since the start of the game. |
Unity 3D Time 類