Class SVSquare
SVSquare UI element. It is a square that allows to select a color by selecting a point in a 2D space.
The X axis represents the Hue and the Y axis represents the Saturation.Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class SVSquare : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, INotifyValueChanging<Vector2>, INotifyValueChanged<Vector2>
Constructors
| Name | Description |
|---|---|
| SVSquare() | Default constructor. |
Fields
| Name | Description |
|---|---|
| imageUssClassName | The SVSquare image styling class. |
| thumbSwatchUssClassName | The SVSquare thumb swatch styling class. |
| thumbUssClassName | The SVSquare thumb styling class. |
| ussClassName | The SVSquare main styling class. |
Properties
| Name | Description |
|---|---|
| brightness | Selected brightness value. |
| incrementFactor | The increment factor used when the user uses the keyboard to change the value. |
| referenceColor | The reference color (current hue with the maximum brightness and saturation). |
| referenceHue | The current hue used to display the SV Square. |
| saturation | Selected saturation value. |
| selectedColor | The currently selected color. |
| value | The current value of the SV Square. The x component is the saturation and the y component is the brightness. |
Methods
| Name | Description |
|---|---|
| SetValueWithoutNotify(Vector2) | Sets the value without notifying the user of the change. |