Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TextValueField<TValueType>

Base class for text fields.
Read time 8 minutesLast updated 2 days ago

Definition

public abstract class TextValueField<TValueType> : TextInputBaseField<TValueType>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<TValueType>, IMixedValueSupport, IValueField<TValueType>

Properties

Property

Description

formatStringThe format string used to define how numeric values are displayed. The string follows standard .NET formatting conventions.

Methods

Method

Description

AddLabelDraggerMethod used to add a mouse dragger on the label for specific numeric fields.
ApplyInputDeviceDeltaApplies the values of a 3D delta and a speed from an input device.
ClearValueClears the input field value, reverting to the default state. Placeholder text will be shown if it is set.
SetValueWithoutNotifyAllow to set the value without being notified.
StartDraggingIndicates the user started the mouse dragging for text selection.
StopDraggingIndicates the user stopped the mouse dragging for text selection.

Classes

Class

Description

TextValueField<TValueType>.TextValueInputThis is the inner representation of the Text input.

Inheritance

Inherited Members