Time Manager
时间管理器
The Time Manager (menu: Edit > Project Settings > Time) lets you set a number of properties that control timing within your game.
时间管理器(菜单:编辑>项目设置>时间)让你设置一系列属性以控制你游戏内的时间选择.
Properties
属性
Property: | Function: |
Fixed Timestep 固定时间步 | A framerate-independent interval that dictates when physics calculations and FixedUpdate() events are performed. 一个帧速率独立的间隔,影响在物理运算时和FixedUpdate()事件的执行 |
Maximum Allowed Timestep 最大允许时间步 | A framerate-independent interval that caps the worst case scenario when frame-rate is low. Physics calculations and FixedUpdate() events will not be performed for longer time than specified. 一个帧速率独立的间隔, |
Time Scale 时间比例 | The speed at which time progress. Change this value to simulate bullet-time effects. A value of 1 means real-time. A value of .5 means half speed; a value of 2 is double speed. 时间前进的速度.改变这个值以模拟子弹时间效果.值为1意味着实时.值为0.5意味着半速;值为2是双倍速度. |
Details
细节
The Time Manager lets you set properties globally but it is often useful to set them from a script during gameplay (for example, setting Time Scale to zero is a useful way to pause the game). See the page on Time and Framerate Management for full details of how time can be managed in Unity.
时间管理器让你设置全局属性但通常通过脚本在游戏期间设置它们是很有用的(例如,设置时间比例为0是暂停游戏的有效方式).参考页面”时间和帧速率管理”获取更多关于Unity内时间管理的细节.