UnityEditor.HostView.ClearBackground C# (CSharp) Method

ClearBackground() protected method

protected ClearBackground ( ) : void
return void
        protected void ClearBackground()
        {
            if (Event.current.type == EventType.Repaint)
            {
                EditorWindow actualView = this.actualView;
                if (((actualView == null) || !actualView.dontClearBackground) || (!base.backgroundValid || (base.position != this.m_BackgroundClearRect)))
                {
                    Color color = !EditorGUIUtility.isProSkin ? kViewColor : EditorGUIUtility.kDarkViewBackground;
                    GL.Clear(true, true, !EditorApplication.isPlayingOrWillChangePlaymode ? color : (color * kPlayModeDarken));
                    base.backgroundValid = true;
                    this.m_BackgroundClearRect = base.position;
                }
            }
        }