This class controls the color picker that is used in the settings menu.
More...
|
void | UpdateComponents () |
| Updates all visual components in the color picker. More...
|
|
void | HandleRGBBox () |
| Handles what happens when the user is done editting the RGB-text box More...
|
|
void | SetColor (Color newColor) |
| Sets the current color of the color picker. Also updates all visual components. More...
|
|
Color | GetColor () |
| Gets the currently selected color. More...
|
|
void | MoveToDesiredPosition (Vector3 desired) |
| Moves the color picker to a position on the screen. The color pickers lower left corner will be at desired . The color picker may be moved to fit inside the screen. More...
|
|
|
GameObject | satValBox |
|
GameObject | previewColorBox |
|
TMPro.TMP_InputField | rgbCodeBox |
|
GameObject | satValMarker |
|
GameObject | hueMarker |
|
ColorPickerButton | activeButton |
|
This class controls the color picker that is used in the settings menu.
◆ GetColor()
Color CellexalVR.DesktopUI.ColorPicker.GetColor |
( |
| ) |
|
Gets the currently selected color.
- Returns
- The currently selected color.
◆ HandleRGBBox()
void CellexalVR.DesktopUI.ColorPicker.HandleRGBBox |
( |
| ) |
|
Handles what happens when the user is done editting the RGB-text box
◆ MoveToDesiredPosition()
void CellexalVR.DesktopUI.ColorPicker.MoveToDesiredPosition |
( |
Vector3 |
desired | ) |
|
Moves the color picker to a position on the screen. The color pickers lower left corner will be at desired . The color picker may be moved to fit inside the screen.
- Parameters
-
desired | The desired position of the color picker. |
◆ SetColor()
void CellexalVR.DesktopUI.ColorPicker.SetColor |
( |
Color |
newColor | ) |
|
Sets the current color of the color picker. Also updates all visual components.
- Parameters
-
◆ UpdateComponents()
void CellexalVR.DesktopUI.ColorPicker.UpdateComponents |
( |
| ) |
|
Updates all visual components in the color picker.
The documentation for this class was generated from the following file:
- Assets/Scripts/DesktopUI/ColorPicker.cs