Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

[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

backgroundUssClassNameUSS class name for the background of the gradient visual in the GradientField element.
contentUssClassNameUSS class name for the content for the gradient visual in the GradientField element.
inputUssClassNameUSS class name for input elements in elements of this type.
labelUssClassNameUSS class name for labels in elements of this type.
ussClassNameUSS class name for elements of this type.

Constructors

Constructor

Description

GradientField()Constructor.
GradientField(System.String)Constructor.

Properties

Property

Description

colorSpaceThe color space currently used by the field.
hdrIf true, treats the color as an HDR value. If false, treats the color as a standard LDR value.
valueThe Gradient currently being exposed by the field.

Inheritance

Inherited Members