I’m new to this unity thing and I keep seeing a HDR Colour Picker that has an intensity slider, can anyone tell me how to access it?
For c# script variables, use:
[ColorUsageAttribute(false, true)] public Color myColor;
or
[ColorUsageAttribute(false, true), SerializeField] private Color myColor;
The first bool is whether or not the color picker should show an alpha slider, the second is if the color is HDR or not.
For shader properties, use:
[HDR] _Color ("HDR Color", Color) = (1,1,1,1)
5 Likes