UnityEditor.LightingWindow.OnGUI C# (CSharp) Method

OnGUI() private method

private OnGUI ( ) : void
return void
        private void OnGUI()
        {
            this.UpdateAnimatedBools(false);
            EditorGUIUtility.labelWidth = 130f;
            EditorGUILayout.Space();
            EditorGUILayout.BeginHorizontal(new GUILayoutOption[0]);
            GUILayout.Space(this.toolbarPadding);
            this.ModeToggle();
            GUILayout.FlexibleSpace();
            this.DrawHelpGUI();
            if (this.m_Mode == Mode.BakeSettings)
            {
                this.DrawSettingsGUI();
            }
            EditorGUILayout.EndHorizontal();
            EditorGUILayout.Space();
            this.m_ScrollPosition = EditorGUILayout.BeginScrollView(this.m_ScrollPosition, new GUILayoutOption[0]);
            switch (this.m_Mode)
            {
                case Mode.ObjectSettings:
                    this.m_ObjectTab.ObjectSettings();
                    break;

                case Mode.BakeSettings:
                    this.lightingEditor.OnInspectorGUI();
                    this.EnlightenBakeSettings();
                    this.fogEditor.OnInspectorGUI();
                    this.otherRenderingEditor.OnInspectorGUI();
                    break;

                case Mode.Maps:
                    this.m_LightmapPreviewTab.Maps();
                    break;
            }
            EditorGUILayout.EndScrollView();
            EditorGUILayout.Space();
            GUI.enabled = !EditorApplication.isPlayingOrWillChangePlaymode;
            this.Buttons();
            GUI.enabled = true;
            EditorGUILayout.Space();
            this.Summary();
            this.PreviewSection();
        }