工具类:Time

2 篇文章 0 订阅

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.
以秒计间隔,在物理和其他固定帧速率进行更新(像MonoBehaviour的FixedUpdate)。

fixedTime The time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game.
最近的FixedUpdate已开始的时间(只读)。这是以秒计自游戏开始的时间。

frameCount The total number of frames that have passed (Read Only).
已经传递帧的总数(只读)。

maximumDeltaTime The maximum time a frame can take. Physics and other fixed frame rate updates (like MonoBehaviour’s FixedUpdate).
一帧能获得的最大时间。物理和其他固定帧速率更新(像FixedUpdate)。

realtimeSinceStartup The real time in seconds since the game started (Read Only).
以秒计,自游戏开始的真实时间(只读)。
smoothDeltaTime A smoothed out Time.deltaTime (Read Only).
经平滑的Time.deltaTime时间(只读)。

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.
时间的缩放。这可以用于减慢运动效果。

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 time in seconds it took to complete the last frame (Read Only).
无关timeScale,以秒计算,要完成最后一帧的时间(只读)。

unscaledTime The timeScale-independant time at the beginning of this frame (Read Only). This is the time in seconds since the start of the game.
无关timeScale,以秒计算,从游戏开始的时间(只读)。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值