Button¶
- public class Button¶
A text label. See
Panel.addButton(String, boolean)
.- RectTransform getRectTransform()¶
The rect transform for the text.
- boolean getVisible()¶
- void setVisible(boolean value)¶
Whether the UI object is visible.
- boolean getClicked()¶
- void setClicked(boolean 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.