Documentation

Support

Unity Lite

Open Unity Lite

Unity Lite

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

InteractableSet whether the user can interact with this text field.
TextSet a default text, the size, and a character limit.
SizeAdjust the size of the text within the input field.
Character LimitSet 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 AreaDetermines where in the field the user is able to type.
CaretThe blinking vertical line that shows where new text appear.
PlaceholderThe hint text shown when the field is empty.
TextThe actual user input, which you can style as needed.