Skip to main content

Variables

class Variables 

Constructors

constructor

public new Variablesscene: Sceneunknown: Variables

Parameters

Methods

get

public getTname: stringinitial: T: () => T

Get variable signal if exists or create signal if not

Type Parameters

Parameters

  • name: string

    The name of the variable.

  • initial: T

    The initial value of the variable. It will be used if the variable was not configured from the outside.


handleReset

public handleReset(): void

Reset all stored signals.


updateSignals

public updateSignalsvariables: Recordstringunknown: void

Update all signals with new project variable values.

Parameters