Novelty scripting reference > Types > Set

Set

Set is a sub-class of Object and shares all of its members and methods.
Set is a reference type. This means it has no constructor and can only be passed around by handle (Set@).

Object types that can be cast as Set: <CanvasSet>, <Set>


Methods

void EnumerateStates(array<string> &inout stateArray) const
Populates array with names of available states for this object.

uint GetStateCount() const
Returns the number of available states for this object.

void ChangeState(const string &in stateName)
Changes the current state.

bool HasState(const string &in stateName) const
Returns true if the object has a certain state.


Sample

// Casting an Object handle to a Set handle
Set@ set = Scene.GetObject("A set object") as Set;

Back to top