Unity基础API详解-Time类

官方Time类介绍官方Time类内容

  • 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;
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值