Asset store link: Advanced Color Picker for Unity UI | GUI Tools | Unity Asset Store
Introduction
This package contains components that can be used to create a colorpicker to use inside your game. All components can be added using the MenuItems inside Unity, which allows you to create a ColorPicker very rapidly without having to touch any code. A default (popup) colorpicker which is similar to the one in the Editor is included in the demo (see screenshot below), as well as other demo’s that showcase the use of more customized colorpickers that don’t popup (See Demo)
This forum post can also act as a support forum, So feel free to ask any questions or give suggestions on how I can improve this package.
Demo
WebGL demo (All demo scenes here are also included in the package)
Features
- Supports RGB, HSV and HSL
- Sliders with changing backgrounds
- Input fields
- Hex field
- Eyedropper/pipette (Including preview)
- Box with changing background
- Circle with changing background
- Easy to implement it for your custom needs by simply listening to the OnColorChanged event.
- All changes made are displayed outside of playmode aswell, so no need to enter playmode to see results of changed settings.
- Good performance. This asset does not create textures for each background that changes colors but instead works with a mesh, which means it is much faster and it gets batched aswell, resulting in only 1 drawcall for all the slider, box and circle backgrounds combined.
This asset is coded in C# and source code is included
Media
I hope I’ll have a video to show here soon
- With “Changing backgrounds” I mean the gradient backgrounds of sliders etc. that change colors whenever you change the Color of the ColorPicker.