GradientField
Makes a field for editing an Gradient. For more information, refer to UXML element GradientField.
Read time 9 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEditor.UIElements
- Assembly: UnityEditor.CoreModule
- Inherits from: BaseField<Gradient>
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<Gradient>
[Icon("UIToolkit/Icons/GradientField.png")][UxmlElement(visibility = LibraryVisibility.Visible)]public class GradientField : BaseField<Gradient>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<Gradient>
Static Fields
Value | Description |
|---|---|
| backgroundUssClassName | USS class name for the background of the gradient visual in the GradientField element. |
| contentUssClassName | USS class name for the content for the gradient visual in the GradientField element. |
| inputUssClassName | USS class name for input elements in elements of this type. |
| labelUssClassName | USS class name for labels in elements of this type. |
| ussClassName | USS class name for elements of this type. |
Constructors
Constructor | Description |
|---|---|
| GradientField() | Constructor. |
| GradientField(System.String) | Constructor. |
Properties
Property | Description |
|---|---|
| colorSpace | The color space currently used by the field. |
| hdr | If true, treats the color as an HDR value. If false, treats the color as a standard LDR value. |
| value | The Gradient currently being exposed by the field. |