Class ColorField
Inheritance
ColorField
  Implements
Inherited Members
Namespace: UnityEditor.Experimental.UIElements
Assembly: UnityEditor.dll
Syntax
public class ColorField : BaseField<Color>, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyle, IBindable, INotifyValueChanged<Color>Constructors
| Improve this Doc View SourceColorField()
Declaration
public ColorField()Properties
| Improve this Doc View SourcefocusIndex
Declaration
public override int focusIndex { get; set; }Property Value
| Type | Description | 
|---|---|
| Int32 | 
Overrides
| Improve this Doc View Sourcehdr
Declaration
public bool hdr { get; set; }Property Value
| Type | Description | 
|---|---|
| Boolean | 
showAlpha
Declaration
public bool showAlpha { get; set; }Property Value
| Type | Description | 
|---|---|
| Boolean | 
showEyeDropper
Declaration
public bool showEyeDropper { get; set; }Property Value
| Type | Description | 
|---|---|
| Boolean | 
Methods
| Improve this Doc View SourceExecuteDefaultAction(EventBase)
Declaration
protected override void ExecuteDefaultAction(EventBase evt)Parameters
| Type | Name | Description | 
|---|---|---|
| EventBase | evt | 
Overrides
| Improve this Doc View SourceExecuteDefaultActionAtTarget(EventBase)
Declaration
protected override void ExecuteDefaultActionAtTarget(EventBase evt)Parameters
| Type | Name | Description | 
|---|---|---|
| EventBase | evt | 
Overrides
| Improve this Doc View SourceSetValueAndNotify(Color)
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(Color newValue)Parameters
| Type | Name | Description | 
|---|---|---|
| Color | newValue | 
Overrides
UnityEngine.Experimental.UIElements.BaseField<UnityEngine.Color>.SetValueAndNotify(UnityEngine.Color)