UnityEditor.LightEditor.ShadowsGUI C# (CSharp) Method

ShadowsGUI() private method

private ShadowsGUI ( ) : void
return void
        private void ShadowsGUI()
        {
            float num = 1f - this.m_ShowAreaOptions.faded;
            if (EditorGUILayout.BeginFadeGroup(num))
            {
                EditorGUILayout.Space();
                EditorGUILayout.PropertyField(this.m_ShadowsType, s_Styles.ShadowType, new GUILayoutOption[0]);
            }
            EditorGUILayout.EndFadeGroup();
            EditorGUI.indentLevel++;
            num *= this.m_ShowShadowOptions.faded;
            if (EditorGUILayout.BeginFadeGroup(num * this.m_ShowRuntimeOptions.faded))
            {
                if (this.m_Lightmapping.intValue == 1)
                {
                    string[] strArray = new string[] { "No shadows from static objects onto dynamic objects and vice versa.", "No shadows from static objects onto dynamic objects, the main light casts shadows from dynamic objects onto static objects." };
                    EditorGUILayout.HelpBox(strArray[(this.m_Type.intValue == 1) ? 1 : 0], MessageType.Warning, false);
                }
                EditorGUILayout.Slider(this.m_ShadowsStrength, 0f, 1f, new GUILayoutOption[0]);
                EditorGUILayout.PropertyField(this.m_ShadowsResolution, new GUILayoutOption[0]);
                EditorGUILayout.Slider(this.m_ShadowsBias, 0f, 2f, new GUILayoutOption[0]);
                EditorGUILayout.Slider(this.m_ShadowsNormalBias, 0f, 3f, new GUILayoutOption[0]);
                float leftValue = Mathf.Min((float) (0.01f * this.m_Range.floatValue), (float) 0.1f);
                EditorGUILayout.Slider(this.m_ShadowsNearPlane, leftValue, 10f, s_Styles.ShadowNearPlane, new GUILayoutOption[0]);
            }
            EditorGUILayout.EndFadeGroup();
            if (EditorGUILayout.BeginFadeGroup(num * this.m_BakedShadowRadiusOptions.faded))
            {
                using (new EditorGUI.DisabledScope(this.m_ShadowsType.intValue != 2))
                {
                    EditorGUILayout.PropertyField(this.m_BakedShadowRadius, s_Styles.BakedShadowRadius, new GUILayoutOption[0]);
                }
            }
            EditorGUILayout.EndFadeGroup();
            if (EditorGUILayout.BeginFadeGroup(num * this.m_BakedShadowAngleOptions.faded))
            {
                using (new EditorGUI.DisabledScope(this.m_ShadowsType.intValue != 2))
                {
                    EditorGUILayout.Slider(this.m_BakedShadowAngle, 0f, 90f, s_Styles.BakedShadowAngle, new GUILayoutOption[0]);
                }
            }
            EditorGUILayout.EndFadeGroup();
            EditorGUI.indentLevel--;
            EditorGUILayout.Space();
        }