Version: 2020.3

Time

class in UnityEngine

매뉴얼로 전환

설명

The interface to get time information from Unity.

정적 변수

captureDeltaTimeSlows game playback time to allow screenshots to be saved between frames.
captureFramerateThe reciprocal of Time.captureDeltaTime.
deltaTimeThe completion time in seconds since the last frame (Read Only).
fixedDeltaTimeThe interval in seconds at which physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate) are performed.
fixedTimeThe time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game.
fixedTimeAsDoubleThe time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game.
fixedUnscaledDeltaTimeThe timeScale-independent interval in seconds from the last fixed frame to the current one (Read Only).
fixedUnscaledTimeThe TimeScale-independant time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game.
fixedUnscaledTimeAsDoubleThe TimeScale-independant time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game.
frameCountThe total number of frames that have passed (Read Only).
inFixedTimeStepReturns true if called inside a fixed time step callback (like MonoBehaviour's FixedUpdate), otherwise returns false.
maximumDeltaTimeThe 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.
maximumParticleDeltaTimeThe maximum time a frame can spend on particle updates. If the frame takes longer than this, then updates are split into multiple smaller updates.
realtimeSinceStartupThe real time in seconds since the game started (Read Only).
realtimeSinceStartupAsDoubleThe real time in seconds since the game started (Read Only). Double precision version of realtimeSinceStartup. This offers more precision than a float or single value, particularly over extended periods of real-world time. In almost all cases, choose the realtimeSinceStartupAsDouble equivalent over realtimeSinceStartup.
smoothDeltaTimeA smoothed out Time.deltaTime (Read Only).
timeThe time at the beginning of this frame (Read Only). This is the time in seconds since the start of the game.
timeAsDoubleThe time at the beginning of this frame (Read Only). This is the time in seconds since the start of the game.
timeScaleThe scale at which time passes. This can be used for slow motion effects.
timeSinceLevelLoadThe time this frame has started (Read Only). This is the time in seconds since the last level has been loaded.
timeSinceLevelLoadAsDoubleThe time this frame has started (Read Only). This is the time in seconds since the last level has been loaded.
unscaledDeltaTimeThe timeScale-independent interval in seconds from the last frame to the current one (Read Only).
unscaledTimeThe timeScale-independant time for this frame (Read Only). This is the time in seconds since the start of the game.
unscaledTimeAsDoubleThe timeScale-independant time for this frame (Read Only). This is the time in seconds since the start of the game.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961