Color Tools - ManeFunction/ManeTools-Unity GitHub Wiki

Color Picker

Editor window Window → Mane Tools → Color Picker (Ctrl/Cmd+Alt+C), plus runtime Color / Color32 helpers in Mane.Unity. Channels are grounded to HSL + luma so the picker and the extensions agree.

From editor code: ColorPicker.ShowWindow().

Color Picker screenshot

Color Extensions

using Mane.Unity;
using UnityEngine;

Color c = Color.red;
float hue = c.GetHSL_Hue();
float luma = c.GetLuma();
string hex = c.ToHex();           // #RRGGBBAA

Color32 c32 = c;
uint packed = c32.ToUInt();     // 0xAARRGGBB
Color32 back = packed.ToColor32();

c = c.SetA(.5f).Shift(-.1f);

Shift clamps RGB. SetR / SetG / SetB / SetA / SetRGB return a copy (colors are structs).

Copy as a code...

Right-click a Color field in the inspector → Copy as a C# code (new Color(...)). The picker window also shows a copyable snippet.

Copy Color