Color Picker

Color picker open button

Color picker sliders

  • 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.

Color picker 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 executing OnChange(Color), use SetValue(color, false).

Color picker inspector

Left hand cube is a demo program to display color. It is not included in this asset.