public class Time
{
public Time();
//捕捉帧率或者说限定帧率,电视帧率是30,电影是24每秒,为了某些原因比如模拟电影效果或者其他原因,用这个设定每秒钟的帧速
public static int captureFramerate { get; set; }
//每一帧所消耗的时间
public static float deltaTime { get; }
//通过deltaTime累加上来的时间
public static float time { get; }
//从开始真实消耗的时间
public static float realtimeSinceStartup { get; }
//物理帧所消耗的时间
public static float fixedDeltaTime { get; set; }
//通过fixedDeltaTime累加的时间
public static float fixedTime { get; }
//时间缩放,会对物理帧刷新有影响
public static float timeScale { get; set; }
}
UnityEngine Time类基本属性解释
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。