Class 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
Inherited Members
Namespace: UnityEditor.UIElements
Syntax
public abstract class BasePopupField<TValueType, TValueChoice> : BaseField<TValueType>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<TValueType>, IMixedValueSupport
Type Parameters
Name | Description |
---|---|
TValueType | Used for the BaseField |
TValueChoice | Used for the choices list |
Fields
arrowUssClassName
USS class name of arrow indicators in elements of this type.
Declaration
public static readonly string arrowUssClassName
Field Value
Type | Description |
---|---|
String |
inputUssClassName
USS class name of input elements in elements of this type.
Declaration
public static readonly string inputUssClassName
Field Value
Type | Description |
---|---|
String |
labelUssClassName
USS class name of labels in elements of this type.
Declaration
public static readonly string labelUssClassName
Field Value
Type | Description |
---|---|
String |
textUssClassName
USS class name of text elements in elements of this type.
Declaration
public static readonly string textUssClassName
Field Value
Type | Description |
---|---|
String |
ussClassName
USS class name of elements of this type.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
String |
Properties
choices
The list of choices to display in the popup menu.
Declaration
public virtual List<TValueChoice> choices { get; set; }
Property Value
Type | Description |
---|---|
List<TValueChoice> |
text
This is the text displayed to the user for the current selection of the popup.
Declaration
public string text { get; }
Property Value
Type | Description |
---|---|
String |
textElement
This is the text displayed.
Declaration
protected TextElement textElement { get; }
Property Value
Type | Description |
---|---|
TextElement |
Methods
ExecuteDefaultActionAtTarget(EventBase)
Declaration
protected override void ExecuteDefaultActionAtTarget(EventBase evt)
Parameters
Type | Name | Description |
---|---|---|
EventBase | evt |
Overrides
SetValueWithoutNotify(TValueType)
Allow changing value without triggering any change event.
Declaration
public override void SetValueWithoutNotify(TValueType newValue)
Parameters
Type | Name | Description |
---|---|---|
TValueType | newValue | The new value. |
Overrides
UnityEngine.UIElements.BaseField<TValueType>.SetValueWithoutNotify(TValueType)
UpdateMixedValueContent()
Declaration
protected override void UpdateMixedValueContent()
Overrides
UnityEngine.UIElements.BaseField<TValueType>.UpdateMixedValueContent()