space_ex v0.1.1 SpaceEx.UI.Button

A text label.

See SpaceEx.UI.Panel.add_button/4.

Link to this section Summary

Functions

Whether the button has been clicked

The rect transform for the text

The text for the button

Whether the UI object is visible

Remove the UI object

Whether the button has been clicked

Whether the UI object is visible

Link to this section Functions

Link to this function get_clicked(conn, this)

Whether the button has been clicked.

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.

Link to this function get_rect_transform(conn, this)

The rect transform for the text.

Link to this function get_text(conn, this)

The text for the button.

Link to this function get_visible(conn, this)

Whether the UI object is visible.

Link to this function remove(conn, this)

Remove the UI object.

Link to this function set_clicked(conn, this, value)

Whether the button has been clicked.

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.

Link to this function set_visible(conn, this, value)

Whether the UI object is visible.