TextValueField<TValueType>
Base class for text fields.
Read time 8 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: TextInputBaseField<T>
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<T>, IMixedValueSupport, IValueField<T>
public abstract class TextValueField<TValueType> : TextInputBaseField<TValueType>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<TValueType>, IMixedValueSupport, IValueField<TValueType>
Properties
Property | Description |
|---|---|
| formatString | The format string used to define how numeric values are displayed. The string follows standard .NET formatting conventions. |
Methods
Method | Description |
|---|---|
| AddLabelDragger | Method used to add a mouse dragger on the label for specific numeric fields. |
| ApplyInputDeviceDelta | Applies the values of a 3D delta and a speed from an input device. |
| ClearValue | Clears the input field value, reverting to the default state. Placeholder text will be shown if it is set. |
| SetValueWithoutNotify | Allow to set the value without being notified. |
| StartDragging | Indicates the user started the mouse dragging for text selection. |
| StopDragging | Indicates the user stopped the mouse dragging for text selection. |
Classes
Class | Description |
|---|---|
| TextValueField<TValueType>.TextValueInput | This is the inner representation of the Text input. |