UnityEngine.ColorUsageAttribute.ColorUsageAttribute C# (CSharp) Method

ColorUsageAttribute() public method

Attribute for Color fields. Used for configuring the GUI for the color.

public ColorUsageAttribute ( bool showAlpha ) : System
showAlpha bool If false then the alpha channel info is hidden both in the ColorField and in the Color Picker.
return System
        public ColorUsageAttribute(bool showAlpha)
        {
            this.showAlpha = true;
            this.hdr = false;
            this.minBrightness = 0f;
            this.maxBrightness = 8f;
            this.minExposureValue = 0.125f;
            this.maxExposureValue = 3f;
            this.showAlpha = showAlpha;
        }

Same methods

ColorUsageAttribute::ColorUsageAttribute ( bool showAlpha, bool hdr, float minBrightness, float maxBrightness, float minExposureValue, float maxExposureValue ) : System
ColorUsageAttribute