ドキュメント

Unity Engine

Unity Engine

unscaledTime

The timeScale-independent time for this frame (Read Only). This is the time in seconds since the start of the game.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static float unscaledTime { get; }

Remarks

When called from inside MonoBehaviour's MonoBehaviour.FixedUpdate(), it returns Time.fixedUnscaledTime.
Unlike Time.realtimeSinceStartup, this returns the same value if called multiple times in a single frame and when the Editor is paused. Unlike Time.time this value is not affected by Time.timeScale and Time.maximumDeltaTime.
See Time and Frame Rate Management in the User Manual for more information about how this property relates to the other Time properties.