Skip to main content

TMP InputField

TMP_InputField is an editable text input field. It should always be used instead of Unity's legacy UI.InputField component.

Properties

PropertyTypeDescription
textstringGets or sets the value of the input field.
isFocusedboolGets a value indicating whether the input field currently has focus and is able to process UI events. This field is read-only.
readOnlyboolGets or sets a value indicating whether the value of the input field is read-only.
richTextboolGets or sets a value indicating whether rich text editing is allowed.
enableboolEnables/disables the attached component.

Methods

FunctionInputOutputDescription
SetTextWithoutNotifystringvoidSets the value of the input field without invoking onValueChanged.