setVariable()
Last updated 12/09/2024
The
setVariable()
is a function on the Five
object that sets the value of a global variable. It sets the value of a named global variable with a new value on
the variable
property on the Five
object in the format of five.variable.<variableName>
.
Available
Client and Server
Function Signature
setVariable(name: string, value: any) : void;
Parameter | Type | Description |
---|---|---|
name | string | Name of the variable |
value | any | Value of the variable |