- captureFramerate:设置帧的速率,主要用于截图
- (只读)deltaTime:当前帧所占用的时间,时间增量(ex:每秒60帧,即deltaTime=1/60),但由于每一帧占用的逻辑不一样,deltaTime的值会上下波动;
- fixedDeltaTime: 可设置的固定的deltaTime,不会进行波动;
- (只读)fixedTime:运行总时间,暂停时间不计算
- (只读)fixedUnscaledDeltaTime:不受timeScale影响的DeltaTime;
- (只读) fixedUnscaledTime The TimeScale-independant time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game.
- (只读)frameCount :当前游戏运行帧数为第几帧;
inFixedTimeStep Returns true if called inside a fixed time step callback (like MonoBehaviour’s FixedUpdate), otherwise returns false. - maximumDeltaTime:最高帧间隔时间
- maximumParticleDeltaTime:如果帧率刷新超过这个值,刷新就会被分成多个更小的刷新。
- (只读)realtimeSinceStartup:游戏运行时间,游戏暂停仍然进行计时;
- smoothDeltaTime:将DeltaTime的变化平缓化,让运行光滑;
- timeScale:时间尺度,默认为1,大于1便是加快时间,小于1减慢时间;
- (只读)timeSinceLevelLoad :场景加载后开始计时;
- (只读) unscaledDeltaTime:不受timeScale影响的DeltaTime;
- unscaledTime:不受timeScale影响的Time;
Unity基础API详解-Time类
最新推荐文章于 2024-04-10 14:42:55 发布