TryGetVariable
Method
TryGetVariable has 2 overloads.
TryGetVariable(byte, out object)
Retrieves the value of a variable on the space object.
TryGetVariable<T>(byte, out T)
Retrieves the value of a variable on the space object.
Parameters
Parameter | Description |
---|---|
byte id | The id of the variable to retrieve. It is recommended to use an enum of type byte to define variables. |
T value | The value of the variable if it exists casted to the desired type. |