码迷,mamicode.com
首页 > 编程语言 > 详细

Unity 3D Time 类

时间:2017-06-14 22:32:40      阅读:257      评论:0      收藏:0      [点我收藏+]

标签:settings   clear   begin   更新   body   depend   ref   sid   smooth   

Time

 

class in UnityEngine

Description

The interface to get time information from Unity.

Static Variables

captureFramerate Slows game playback time to allow screenshots to be saved between frames. 表示设置每秒的频率而不考虑真实时间
deltaTime The time in seconds it took to complete the last frame (Read Only).(只读)表示系统从上一帧到当前帧的时间 以秒为单位
fixedDeltaTime The interval in seconds at which physics and other fixed frame rate updates (like MonoBehaviour‘s FixedUpdate) are performed.表示以秒计间隔,在物理和其他固定帧率进行更新,在Edit->ProjectSettings->Time的Fixed Timestep可以自行设置。
fixedTime The time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game.(只读)表示以秒计游戏开始的时间,固定时间以定期间隔更新(相当于fixedDeltaTime)直到达到time属性。
fixedUnscaledDeltaTime The timeScale-independent interval in seconds from the last fixed frame to the current one (Read Only).表示从上一个fixed frame 到现在的timescale-independent 时间
fixedUnscaledTime The timeScale-independent time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game.
frameCount The total number of frames that have passed (Read Only).
inFixedTimeStep Returns true if called inside a fixed time step callback (like MonoBehaviour‘s FixedUpdate), otherwise returns false.
maximumDeltaTime The maximum time a frame can take. Physics and other fixed frame rate updates (like MonoBehaviour‘s FixedUpdate).
maximumParticleDeltaTime The maximum time a frame can spend on particle updates. If the frame takes longer than this, then updates are split into multiple smaller updates.
realtimeSinceStartup The real time in seconds since the game started (Read Only).
smoothDeltaTime A smoothed out Time.deltaTime (Read Only).
time The time at the beginning of this frame (Read Only). This is the time in seconds since the start of the game.
timeScale The scale at which the time is passing. This can be used for slow motion effects.时间缩放,默认值为1,若设置<1,表示时间减慢,若设置>1,表示时间加快,可以用来加速和减速游戏,非常有用。
timeSinceLevelLoad The time this frame has started (Read Only). This is the time in seconds since the last level has been loaded.
unscaledDeltaTime The timeScale-independent interval in seconds from the last frame to the current one (Read Only).
unscaledTime The timeScale-independent time for this frame (Read Only). This is the time in seconds since the start of the game.

Unity 3D Time 类

标签:settings   clear   begin   更新   body   depend   ref   sid   smooth   

原文地址:http://www.cnblogs.com/mythdoraemon/p/7011109.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!