InputField

class InputField

An input field. See Panel.AddInputField.

RectTransform RectTransform { get; }

The rect transform for the input field.

Game Scenes:

All

Boolean Visible { get; set; }

Whether the UI object is visible.

Game Scenes:

All

String Value { get; set; }

The value of the input field.

Game Scenes:

All

Text Text { get; }

The text component of the input field.

Game Scenes:

All

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.

Boolean Changed { get; set; }

Whether the input field has been changed.

Game Scenes:

All

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.

Game Scenes:

All