GearBlocks
The GearBlocks Lua scripting API
Properties | List of all members
SmashHammer.Scripting.TimeProxy Class Reference

It's time. More...

Properties

static float DeltaTime [get]
 The frame delta time.
 
static float UnscaledDeltaTime [get]
 The unscaled frame delta time.
 
static float FixedDeltaTime [get]
 The fixed delta time.
 
static float FixedUnscaledDeltaTime [get]
 The unscaled fixed delta time.
 
static double GameTime [get]
 The game time.
 
static double UnscaledGameTime [get]
 The unscaled game time.
 

Detailed Description

It's time.

Available in Lua via the "Time" global, for example:

local deltaTime = Time.DeltaTime

Property Documentation

◆ DeltaTime

float SmashHammer.Scripting.TimeProxy.DeltaTime
staticget

The frame delta time.

The interval in seconds from the last frame to the current one.

◆ UnscaledDeltaTime

float SmashHammer.Scripting.TimeProxy.UnscaledDeltaTime
staticget

The unscaled frame delta time.

The timeScale-independent interval in seconds from the last frame to the current one.

◆ FixedDeltaTime

float SmashHammer.Scripting.TimeProxy.FixedDeltaTime
staticget

The fixed delta time.

The interval in seconds over which physics and other fixed updates are performed.

◆ FixedUnscaledDeltaTime

float SmashHammer.Scripting.TimeProxy.FixedUnscaledDeltaTime
staticget

The unscaled fixed delta time.

The timeScale-independent interval in seconds over which physics and other fixed updates are performed.

◆ GameTime

double SmashHammer.Scripting.TimeProxy.GameTime
staticget

The game time.

The time in seconds since the start of the game.

◆ UnscaledGameTime

double SmashHammer.Scripting.TimeProxy.UnscaledGameTime
staticget

The unscaled game time.

The timeScale-independent time in seconds since the start of the game.