Button

class Button

A text label. See Panel::add_button().

RectTransform rect_transform()

The rect transform for the text.

bool visible()
void set_visible(bool value)

Whether the UI object is visible.

Text text()

The text for the button.

bool clicked()
void set_clicked(bool value)

Whether the button has been clicked.

Note

This property is set to true when the user clicks the button. A client script should reset the property to false in order to detect subsequent button presses.

void remove()

Remove the UI object.