Time.timeScale用来调节unity中游戏时间快慢的
实际上,它是用来改变现实时间的
意思是:
Time.timeScale 的改变,只会影响:
-
FixedUpdate方法 - 与时间相关的量,比如,与
Time.deltaTime相乘过的值
不会影响和帧率相关的方法:
-
Update方法 -
LateUpdate方法
Time.timeScale用来调节unity中游戏时间快慢的
实际上,它是用来改变现实时间的
Time.timeScale 的改变,只会影响:
FixedUpdate 方法Time.deltaTime 相乘过的值不会影响和帧率相关的方法:
Update 方法LateUpdate 方法本文标题:关于时间静止 Time.timeScale
本文链接:https://www.haomeiwen.com/subject/gaivrftx.html
网友评论