InputField

class InputField

An input field. See Panel::add_input_field().

RectTransform rect_transform()

The rect transform for the input field.

bool visible()
void set_visible(bool value)

Whether the UI object is visible.

std::string value()
void set_value(std::string value)

The value of the input field.

Text text()

The text component of the input field.

Note

Use InputField::value() to get and set the value in the field. This object can be used to alter the style of the input field’s text.

bool changed()
void set_changed(bool value)

Whether the input field has been changed.

Note

This property is set to true when the user modifies the value of the input field. A client script should reset the property to false in order to detect subsequent changes.

void remove()

Remove the UI object.