Class GradientField
Makes a field for editing an
Inherited Members
Namespace: UnityEditor.UIElements
Syntax
public class GradientField : BaseField<Gradient>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<Gradient>, IMixedValueSupport
Constructors
GradientField()
Constructor.
Declaration
public GradientField()
GradientField(String)
Constructor.
Declaration
public GradientField(string label)
Parameters
Type | Name | Description |
---|---|---|
String | label |
Fields
borderUssClassName
USS class name for border elements in elements of this type.
Declaration
public static readonly string borderUssClassName
Field Value
Type | Description |
---|---|
String |
contentUssClassName
USS class name for the content for the gradient visual in the GradientField element.
Declaration
public static readonly string contentUssClassName
Field Value
Type | Description |
---|---|
String |
inputUssClassName
USS class name for input elements in elements of this type.
Declaration
public static readonly string inputUssClassName
Field Value
Type | Description |
---|---|
String |
labelUssClassName
USS class name for labels in elements of this type.
Declaration
public static readonly string labelUssClassName
Field Value
Type | Description |
---|---|
String |
ussClassName
USS class name for elements of this type.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
String |
Properties
colorSpace
The color space currently used by the field.
Declaration
public ColorSpace colorSpace { get; set; }
Property Value
Type | Description |
---|---|
ColorSpace |
value
The
Declaration
public override Gradient value { get; set; }
Property Value
Type | Description |
---|---|
Gradient |
Overrides
UnityEngine.UIElements.BaseField<Gradient>.value
Remarks
Note that changing this will not trigger a change event to be sent.
Methods
ExecuteDefaultAction(EventBase)
Declaration
protected override void ExecuteDefaultAction(EventBase evt)
Parameters
Type | Name | Description |
---|---|---|
EventBase | evt |
Overrides
UnityEngine.UIElements.BaseField<Gradient>.ExecuteDefaultAction(UnityEngine.UIElements.EventBase)
SetValueWithoutNotify(Gradient)
Declaration
public override void SetValueWithoutNotify(Gradient newValue)
Parameters
Type | Name | Description |
---|---|---|
Gradient | newValue |
Overrides
UnityEngine.UIElements.BaseField<Gradient>.SetValueWithoutNotify(Gradient)
UpdateMixedValueContent()
Declaration
protected override void UpdateMixedValueContent()
Overrides
UnityEngine.UIElements.BaseField<Gradient>.UpdateMixedValueContent()