InputField#
- class UI.InputField#
An input field. See
UI.Panel.add_input_field().- rect_transform: UI.RectTransform#
The rect transform for the input field.
- Attribute:
Read-only, cannot be set
- Return type:
- visible: boolean#
Whether the UI object is visible.
- Attribute:
Can be read or written
- Return type:
boolean
- value: string#
The value of the input field.
- Attribute:
Can be read or written
- Return type:
string
- text: UI.Text#
The text component of the input field.
- Attribute:
Read-only, cannot be set
- Return type:
Note
Use
UI.InputField.valueto get and set the value in the field. This object can be used to alter the style of the input field’s text.
- changed: boolean#
Whether the input field has been changed.
- Attribute:
Can be read or written
- Return type:
boolean
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.
- remove()#
Remove the UI object.