Time

class in UnityEngine

Cambiar al Manual

Descripción

Interfaz para obtener información sobre tiempos en Unity.

Variables Estáticas

captureFramerateRalentiza la reproducción del juego para permitir que se puedan guardar capturas de pantalla entre frames.
deltaTimeEl tiempo en segundos que tardó en completarse el último frame (Read Only).
fixedDeltaTimeEl intervalo en segundos en que las actualizaciones de física y de otros frame rates fijos (como FixedUpdate de MonoBehaviour) se realizan.
fixedTimeEl tiempo en el que el ultimo FixedUpdate ha empezado (Lectura Solamente). Este es el tiempo en segundos desde el inicio del juego.
fixedUnscaledDeltaTimeThe timeScale-independent interval in seconds from the last fixed frame to the current one (Read Only).
fixedUnscaledTimeThe TimeScale-independant time the latest FixedUpdate has started (Read Only). This is the time in seconds since the start of the game.
frameCountLa cantidad total de frames que han pasado (Read Only).
inFixedTimeStepReturns true if called inside a fixed time step callback (like MonoBehaviour's FixedUpdate), otherwise returns false.
maximumDeltaTimeThe maximum time a frame can take. Physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate) will be performed only for this duration of time per frame.
maximumParticleDeltaTimeThe maximum time a frame can spend on particle updates. If the frame takes longer than this, then updates are split into multiple smaller updates.
realtimeSinceStartupEl tiempo real en segundos desde que comenzó el juego (Read Only).
smoothDeltaTimeUn Time.deltaTime suavizado (Lectura Solamente).
timeEl tiempo al comienzo de este frame (Lectura Solamente). Este es el tiempo en segundos desde el inicio del juego.
timeScaleEscala a la que pasa el tiempo. Se puede usar para efectos de cámara lenta.
timeSinceLevelLoadEl tiempo que este frame ha empezado (Lectura solamente). Esto es el tiempo en segundos desde que el ultimo nivel ha cargado.
unscaledDeltaTimeThe timeScale-independent interval in seconds from the last frame to the current one (Read Only).
unscaledTimeThe timeScale-independant time for this frame (Read Only). This is the time in seconds since the start of the game.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961