Ward Dehairs A simple, flexible and easy to use Color Picker prefab for the standard Unity UI.
Allow users to conveniently select different colors via interactive sliders.
The Flexible Color Picker includes different sliders and UI elements that can be turned on or off as desired, including:
â—‹ A preview of the selected color, with and without alpha
â—‹ RGB Sliders
â—‹ HSV Sliders
â—‹ Alpha Slider
â—‹ Hexadecimal input field
â—‹ 2D HSV Slider
â—‹ Options to change what is shown on the 2D Slider
Each slider will automatically update its displayed colors to show the user exactly which ones they can select with each slider.
The color picker asset is entirely flexible and compatible with Unity's UI features, including:
â—‹ Turning off unneeded elements
â—‹ Changing sizes, rearranging and moving elements on an individual basis
â—‹ Rearranging and moving elements individually
â—‹ Horizontal and vertical orientation for sliders
â—‹ Compatible with transform scale and rotation, including automatic canvas scaling
â—‹ NEW! Static mode avoids using custom shaders to ensure the FCP is compatible with any platform in any situation. Provides a slight performance boost too
â—‹ NEW! Support for multiple FCP instances
â—‹ NEW! Support for world space and overlay canvas render modes
The main script exposes a simple color value that you can integrate into your scripting as desired.
Compatibility notes:
• The Flexible Color Picker contains a prefab that is destined to work with the standard Unity Canvas UI system. Your scene must contain a standard Canvas and EventSystem for it to work.
• The asset is guaranteed compatible with any Unity default platform that has a pointer system (touchscreen, mouse, track pad etc).
• Elements can be converted to TextMeshPro given basic coding and Unity editor work.