UnityEditor.GameViewSizeMenu.OnGUI C# (CSharp) Method

OnGUI() public method

public OnGUI ( Rect rect ) : void
rect UnityEngine.Rect
return void
        public override void OnGUI(Rect rect)
        {
            if (!this.m_GameView.showLowResolutionToggle)
            {
                base.OnGUI(rect);
            }
            else
            {
                Rect position = new Rect(rect.x, rect.y, rect.width, this.frameHeight);
                GUI.Label(position, "", EditorStyles.inspectorBig);
                GUI.enabled = !this.m_GameView.forceLowResolutionAspectRatios;
                Rect rect3 = new Rect(9f, 7f, rect.width, 16f);
                this.m_GameView.lowResolutionForAspectRatios = GUI.Toggle(rect3, !this.m_GameView.forceLowResolutionAspectRatios ? this.m_GameView.lowResolutionForAspectRatios : true, GameView.Styles.lowResAspectRatiosContextMenuContent);
                GUI.enabled = true;
                rect.height -= this.contentOffset;
                rect.y += this.contentOffset;
                base.OnGUI(rect);
            }
        }