Class ColorSlider
A slider that allows the user to select a color value.
Inheritance
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public sealed class ColorSlider : SliderFloat, IEventHandler, IVisualElementScheduler, IExperimentalFeatures, ITransitionAnimations, ITransform, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder, IInputElement<float>, IValidatableElement<float>, INotifyValueChanging<float>, INotifyValueChanged<float>, IFormattable<float>
Constructors
ColorSlider()
Default constructor.
Declaration
public ColorSlider()
Fields
ussClassName
The ColorSlider main styling class.
Declaration
public const string ussClassName = "appui-color-slider"
Field Value
Type | Description |
---|---|
string |
Properties
colorRange
The current color range in the track.
Declaration
public Gradient colorRange { get; set; }
Property Value
Type | Description |
---|---|
Gradient |
colorValue
The currently selected color value.
Declaration
public Color colorValue { get; }
Property Value
Type | Description |
---|---|
Color |
Methods
InvokeValueChangedCallbacks()
Called when the value of the slider has changed via the value property.
Declaration
protected override void InvokeValueChangedCallbacks()
Overrides
RefreshUI()
Refresh the UI of the slider. This is usually called during Set
Declaration
protected override void RefreshUI()