Novelty scripting reference > Types > 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>


bool enabled (Property)
Is the button enabled?


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


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

Back to top