2using System.Runtime.CompilerServices;
3using System.Runtime.InteropServices;
7 public static class Time
12 public static int frameRate { [MethodImpl(MethodImplOptions.InternalCall)]
get; }
17 public static float deltaTime { [MethodImpl(MethodImplOptions.InternalCall)]
get; }
22 public static float timeScale { [MethodImpl(MethodImplOptions.InternalCall)]
get; [MethodImpl(MethodImplOptions.InternalCall)]
set; }
static float deltaTime
The interval in seconds from the last frame to the current one
static float timeSinceLevelStartScaled
The time in seconds scaled by timeScale since the last scene has finished loading
static float timeScale
The scale at which time passes
static float timeSinceGameStart
The real time in seconds since the game started
static int frameRate
The current frames per second value (FPS)
static float timeSinceLevelStart
The time in seconds since the last scene has finished loading
static float timeSinceGameStartScaled
The time in seconds scaled by timeScale since the game started