Novelty scripting reference > Types > Button

Button

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

Object types that can be cast as Button: <Button>


Members

bool enabled (Property)
Is the button enabled?


Methods

void SetCaption(const string &in caption)
Set the button caption.


Sample

// Casting an Object handle to Button handle
Button@ btn = Scene.GetObject("A button object") as Button;

Back to top