zoukankan      html  css  js  c++  java
  • Unity 3D Time 类

    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.
  • 相关阅读:
    sqlmap使用教程-安装教程
    SQL注入攻击总结
    mysql 创建函数失败解决办法,版本 8.0.26
    【VUE3.0体验】axios引入以及property的替代
    异化的房价周期
    vue使用websoket
    spring依赖注入方式及springBoot如何解决循环依赖
    范型的正确使用
    mysql GROUP_CONCAT使用
    Mybatis-MySQL 中使用IFNUL
  • 原文地址:https://www.cnblogs.com/mythdoraemon/p/7011109.html
Copyright © 2011-2022 走看看