InputField

public class InputField

An input field. See Panel.addInputField(boolean).

RectTransform getRectTransform()

The rect transform for the input field.

boolean getVisible()
void setVisible(boolean value)

Whether the UI object is visible.

String getValue()
void setValue(String value)

The value of the input field.

Text getText()

The text component of the input field.

Note

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

boolean getChanged()
void setChanged(boolean 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.