Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TextField

A TextField accepts and displays text input. For more information, refer to UXML element TextField.
Read time 11 minutesLast updated 2 days ago

Definition

[UxmlElement(libraryPath = "Controls")][Icon("UIToolkit/Icons/TextField.png")]public class TextField : TextInputBaseField<string>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<string>

Static Fields

Value

Description

inputUssClassNameUSS class name of input elements in elements of this type.
labelUssClassNameUSS class name of labels in elements of this type.
ussClassNameUSS class name of elements of this type.

Constructors

Properties

Property

Description

multilineSet this to true to allow multiple lines in the textfield and false if otherwise.
valueThe string currently being exposed by the field.

Inheritance

Inherited Members