Class ColorSlider
A slider that allows the user to select a color value.
Inheritance
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public sealed class ColorSlider : BaseSlider<float, float>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IValidatableElement<float>, INotifyValueChanging<float>, INotifyValueChanged<float>
  Constructors
| Name | Description | 
|---|---|
| ColorSlider() | Default constructor.  | 
      
Fields
| Name | Description | 
|---|---|
| sizeUssClassName | The ColorSlider size styling class.  | 
      
| thumbContainerUssClassName | The ColorSlider thumb container styling class.  | 
      
| thumbContentUssClassName | The ColorSlider thumb content styling class.  | 
      
| thumbUssClassName | The ColorSlider thumb styling class.  | 
      
| trackSwatchUssClassName | The ColorSlider track swatch styling class.  | 
      
| trackUssClassName | The ColorSlider track styling class.  | 
      
| ussClassName | The ColorSlider main styling class.  | 
      
Properties
| Name | Description | 
|---|---|
| colorRange | The current color range in the track.  | 
      
| colorValue | The currently selected color value.  | 
      
| incrementFactor | The delta value used when interacting with the slider with the keyboard.  | 
      
| size | The current size of the ActionButton.  | 
      
Methods
| Name | Description | 
|---|---|
| Clamp(float, float, float) | Utility method to clamp a float value between specified bounds.  | 
      
| Decrement(float) | Method to implement which returns the decrement of a given value.  | 
      
| Increment(float) | Method to implement which returns the increment of a given value.  | 
      
| ParseStringToValue(string, out float) | |
| SetValueWithoutNotify(float) | Sets the value of the slider without notifying the listeners.  | 
      
| SliderLerpUnclamped(float, float, float) | |
| SliderNormalizeValue(float, float, float) |