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 7 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: BaseField<T>
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<T>, IMixedValueSupport
public abstract class BasePopupField<TValueType, TValueChoice> : BaseField<TValueType>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<TValueType>, IMixedValueSupport
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. |