文档

Unity Engine

Unity Engine

TextField

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

Definition

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

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