Input Field element
Let users enter text into your application.
Read time 1 minuteLast updated 2 days ago
The Input Field element is an empty field that accepts text from the user. For example, you can ask a user to enter their name into the field and use their answer to address them by their name in the application.
Input Field properties
The following properties are available for you to customize in the input field's Inspector panel:Property | Description |
---|---|
Interactable | Set whether the user can interact with this text field. |
Text | Set a default text, the size, and a character limit. |
Size | Adjust the size of the text within the input field. |
Character Limit | Set a maximum number of characters for the input. |
Input Field child objects
The Input Field GameObject also contains multiple child objects that you can customize:Element | Description |
---|---|
Text Area | Determines where in the field the user is able to type. |
Caret | The blinking vertical line that shows where new text appear. |
Placeholder | The hint text shown when the field is empty. |
Text | The actual user input, which you can style as needed. |