Class EnumField
Inheritance
EnumField
Implements
Inherited Members
Namespace: UnityEditor.Experimental.UIElements
Assembly: UnityEditor.dll
Syntax
public class EnumField : BaseField<Enum>, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyle, IBindable, INotifyValueChanged<Enum>
Constructors
| Improve this Doc View SourceEnumField()
Declaration
public EnumField()
EnumField(Enum)
Declaration
public EnumField(Enum defaultValue)
Parameters
Type | Name | Description |
---|---|---|
Enum | defaultValue |
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 SourceInit(Enum)
Declaration
public void Init(Enum defaultValue)
Parameters
Type | Name | Description |
---|---|---|
Enum | defaultValue |
SetValueAndNotify(Enum)
Declaration
[Obsolete("This method is replaced by simply using this.value. The default behaviour has been changed to notify when changed. If the behaviour is not to be notified, SetValueWithoutNotify() must be used.", false)]
public override void SetValueAndNotify(Enum newValue)
Parameters
Type | Name | Description |
---|---|---|
Enum | newValue |
Overrides
UnityEngine.Experimental.UIElements.BaseField<System.Enum>.SetValueAndNotify(System.Enum)
|
Improve this Doc
View Source
SetValueWithoutNotify(Enum)
Declaration
public override void SetValueWithoutNotify(Enum newValue)
Parameters
Type | Name | Description |
---|---|---|
Enum | newValue |
Overrides
UnityEngine.Experimental.UIElements.BaseField<System.Enum>.SetValueWithoutNotify(System.Enum)