Unity5.x 之 Time详解
来源:互联网 发布:网络舆论的传播分析 编辑:程序博客网 时间:2024/06/13 23:57
Time
class in UnityEngine
Description
Unity当中获取 时间信息的接口
Static Variables
captureFramerateSlows game playback time to allow screenshots to be saved between frames.deltaTimeThe time in seconds it took to complete the last frame (Read Only).上一帧完成所用的时间秒(只读)fixedDeltaTimeThe interval in seconds at which physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate) are performed.
在物理和固定帧更新的时间间隔秒(类似MonoBehavior's FixedUpdate)fixedTimeThe time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game.
最近的一次FixedUpdate已开始的时间(只读)自游戏开始计时,以秒记。frameCountThe total number of frames that have passed (Read Only).
已经执行的帧率的总数。maximumDeltaTimeThe maximum time a frame can take. Physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate).
在物理帧和其他帧更新中,一帧能获取的最大时间。realtimeSinceStartupThe real time in seconds since the game started (Read Only).
从游戏开始到现在所消耗的实时时间(只读)。smoothDeltaTimeA smoothed out Time.deltaTime (Read Only).
一个平滑淡出的Time.deltaTime(只读)timeThe time at the beginning of this frame (Read Only). This is the time in seconds since the start of the game.
从游戏开始到现在所消耗的时间(只读)。timeScaleThe scale at which the time is passing. This can be used for slow motion effects.
时间的消耗速率,可以减慢运动效果。timeSinceLevelLoadThe time this frame has started (Read Only). This is the time in seconds since the last level has been loaded.
从上次加载管卡完成到现在所用的时间(只读)unscaledDeltaTimeThe timeScale-independent time in seconds it took to complete the last frame (Read Only).
不受timeScale系数影响的deltaTime。unscaledTimeThe timeScale-independant time at the beginning of this frame (Read Only). This is the time in seconds since the start of the game.
不受timeScale系数影响的Time.time。补充:
1.timeScale影响的是Time.deltaTime的值,但不影响Time.FixedDeltaTime.
2.timeScale影响FixedUpdate 的执行速率,但不影响Update和LateUpdate.
3.timeScale影响Time.time的值和Time.FixedTime的值。
0 0
- Unity5.x 之 Time详解
- Unity5.x Time用法详解
- Unity5.x Animator之RootMotion
- Unity5.x Animator之BlendTree
- Unity5.x Mecanim Animator使用详解
- Unity5.x AssetBundle依赖项打包详解
- UIFramework之Unity5.x AssetBundle打包策略
- unity5.X 中的全局光照技术详解(建议收藏)
- Unity教程之-Unity5.x版本AssetBundle加载研究
- unity5.x的bug
- Drawcall总结-Unity5.X
- Unity5.x依赖打包
- Unity5.x新特性
- UIGUI Unity5.x 学习
- Unity5.x入门游戏
- unity5.x 场景切换
- Unity5.x 解析Json
- unity5.X AssetBundle
- 数组和链表的区别
- C# 泛型类型参数的约束
- java for语句案例
- 【数据库开发】在Windows上利用C++开发MySQL的初步
- 使用 Image.SCALE_SMOOTH算法进行图片压缩
- Unity5.x 之 Time详解
- alibaba.fastjson.JSON
- 算法 -- iOS开发用Objective_C / Swift3.0实现:快速排序 / 冒泡排序 / 选择排序
- JavaWeb 第12章 JDBC详解(一)
- 程序猿的自我修养,笔记
- Android6.0 keyguard锁屏加载流程分析
- Android进阶——多线程系列之Semaphore、CyclicBarrier、CountDownLatch
- acm--博弈入门2(P/N分析)--(HDU 1847 HDU 2188 HDU 3863)
- UVA 220 Othello 模拟题