UnityEditor.ColorPicker.BrightnessField C# (CSharp) Method

BrightnessField() private method

private BrightnessField ( ) : void
return void
        private void BrightnessField()
        {
            if (this.m_HDR)
            {
                EditorGUI.BeginChangeCheck();
                EditorGUI.indentLevel++;
                Color color = EditorGUILayout.ColorBrightnessField(GUIContent.Temp("Current Brightness"), ColorPicker.color, this.m_HDRConfig.minBrightness, this.m_HDRConfig.maxBrightness, new GUILayoutOption[0]);
                EditorGUI.indentLevel--;
                if (EditorGUI.EndChangeCheck())
                {
                    float maxColorComponent = color.maxColorComponent;
                    if (maxColorComponent > this.m_HDRValues.m_HDRScaleFactor)
                    {
                        this.SetHDRScaleFactor(maxColorComponent);
                    }
                    this.SetNormalizedColor(color.RGBMultiplied((float) (1f / this.m_HDRValues.m_HDRScaleFactor)));
                }
            }
        }