World Utilities / UI
Color Picker
A hue/brightness color field players can point at to pick a color.
since v0.1.0localsynchronizedpersisted
| Component | Add Component menu / prefab | Source |
|---|---|---|
Color PickerVRCTools.World.Values.UI.ColorPicker
|
Values › UI › Color Pickerprefab: Color Picker.prefab
|
ColorPicker.cs ↗ |
A two dimensional color field: the horizontal axis selects the hue, the vertical axis the brightness (value); saturation is always full. The picked color is written to a color value and shown in an optional crosshair image.
The color picker consists of several cooperating objects (field, cursor, crosshair). Always start from the
Color Pickerprefab instead of adding the component by hand.
Parameters
| Section | Parameter | Default | Description |
|---|---|---|---|
| Type | LOCAL |
Kind of the bound value. | |
| Source | None | The color value to write to. Required. | |
| UI Elements | Cursor | None | The internal cursor behaviour tracking the pointer. Required. |
| Crosshair | None | Optional RawImage tinted with the currently picked color. |
Because saturation is fixed, pastel and gray tones can’t be picked directly. Derive them with a Color Adjustment converter (negative saturation offset) or combine sliders with a Color Component converter.