文档

Unity Engine

Unity Engine

TextField

A TextField accepts and displays text input. For more information, refer to UXML element TextField.
阅读时间10 分钟最后更新于 11 小时前

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