Button#

class Button#

A text label. See Panel.AddButton.

RectTransform RectTransform { get; }#

The rect transform for the text.

Game Scenes:

All

Boolean Visible { get; set; }#

Whether the UI object is visible.

Game Scenes:

All

Text Text { get; }#

The text for the button.

Game Scenes:

All

Boolean Clicked { get; set; }#

Whether the button has been clicked.

Game Scenes:

All

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.

Game Scenes:

All