Class ColorWheel
A color wheel that allows the user to select a color hue by rotating the wheel. It is also possible to set the saturation and brightness and opacity of the wheel.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class ColorWheel : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, INotifyValueChanging<float>, INotifyValueChanged<float>
Constructors
| Name | Description |
|---|---|
| ColorWheel() | Default constructor. |
Fields
| Name | Description |
|---|---|
| imageUssClassName | The ColorWheel image styling class. |
| thumbSwatchUssClassName | The ColorWheel thumb swatch styling class. |
| thumbUssClassName | The ColorWheel thumb styling class. |
| ussClassName | The ColorWheel main styling class. |
Properties
| Name | Description |
|---|---|
| brightness | The brightness of the color wheel. |
| checkerColor1 | The first color of the checkerboard pattern. |
| checkerColor2 | The second color of the checkerboard pattern. |
| checkerSize | The size of the checkerboard pattern. |
| incrementFactor | The factor by which the value is incremented when interacting with the wheel from the keyboard. |
| innerRadius | The inner radius of the color wheel. |
| opacity | The opacity of the color wheel. Note that a checkerboard pattern is always drawn behind the color wheel. |
| saturation | The saturation of the color wheel. |
| selectedColor | The currently selected color. |
| value | The hue value of the color wheel. |
Methods
| Name | Description |
|---|---|
| SetValueWithoutNotify(float) | Sets the value without sending any event. |