Version: 2021.1

Time.unscaledTime

切换到手册
public static float unscaledTime ;

描述

The timeScale-independent time for this frame (Read Only). This is the time in seconds since the start of the game.

When called from inside MonoBehaviour's 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.