Color Picker
- Color picker is a UI element that allows users to select a color and transparent.
- Drag
ColorPicker
prefab under Dashboard > Pages > [Page] > Viewport > Contents in hierarchy.
- ColorPicker consists of two sliders color and transparency.
- Selected color saved to
color
property. - Transparency value is included in the color as an alpha value.
- If
isEnabled
is false, color picker is disabled. OnChange(Color)
event handler is called when the color is changed.- If you want to change
color
without executingOnChange(Color)
, useSetValue(color, false)
.
Left hand cube is a demo program to display color. It is not included in this asset.