Class BasePopupField<TValue, TChoice>
This is the base class for all the popup field elements. TValue and TChoice can be different, see MaskField, or the same, see PopupField
Implements
INotifyValueChanged<TValue>
Inherited Members
Namespace: UnityEditor.Experimental.UIElements
Assembly: UnityEditor.dll
Syntax
public abstract class BasePopupField<TValue, TChoice> : BaseField<TValue>, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyle, IBindable, INotifyValueChanged<TValue>
Type Parameters
| Name | Description |
|---|---|
| TValue | Used for the BaseField |
| TChoice | Used for the choices list |
Constructors
| Improve this Doc View SourceBasePopupField()
Declaration
protected BasePopupField()
Fields
| Improve this Doc View Sourcem_TextElement
Declaration
protected TextElement m_TextElement
Field Value
| Type | Description |
|---|---|
| TextElement |
Properties
| Improve this Doc View Sourcetext
Declaration
public string text { get; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
| Improve this Doc View SourceExecuteDefaultActionAtTarget(EventBase)
Declaration
protected override void ExecuteDefaultActionAtTarget(EventBase evt)
Parameters
| Type | Name | Description |
|---|---|---|
| EventBase | evt |
Overrides
| Improve this Doc View SourceSetValueWithoutNotify(TValue)
Declaration
public override void SetValueWithoutNotify(TValue newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| TValue | newValue |
Overrides
UnityEngine.Experimental.UIElements.BaseField<TValue>.SetValueWithoutNotify(TValue)