BasePopupField<TValueType, TValueChoice>
This is the base class for all the popup field elements. TValue and TChoice can be different, see MaskField, or the same, see PopupField
Read time 9 minutesLast updated 10 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: BaseField<T>
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<T>
public abstract class BasePopupField<TValueType, TValueChoice> : BaseField<TValueType>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<TValueType>
Static Fields
Value | Description |
|---|---|
| arrowUssClassName | USS class name of arrow indicators in elements of this type. |
| inputUssClassName | USS class name of input elements in elements of this type. |
| labelUssClassName | USS class name of labels in elements of this type. |
| textUssClassName | USS class name of text elements in elements of this type. |
| ussClassName | USS class name of elements of this type. |
Properties
Property | Description |
|---|---|
| choices | The list of choices to display in the popup menu. |
| text | This is the text displayed to the user for the current selection of the popup. |
| textElement | This is the text displayed. |
Methods
Method | Description |
|---|---|
| SetValueWithoutNotify | Allow changing value without triggering any change event. |