UnityEditor.GameViewSize.Clamp C# (CSharp) Method

Clamp() private method

private Clamp ( ) : void
return void
        private void Clamp()
        {
            int width = this.m_Width;
            int height = this.m_Height;
            int min = 0;
            GameViewSizeType sizeType = this.sizeType;
            if (sizeType == GameViewSizeType.AspectRatio)
            {
                min = 0;
            }
            else if (sizeType == GameViewSizeType.FixedResolution)
            {
                min = 10;
            }
            else
            {
                Debug.LogError("Unhandled enum!");
            }
            this.m_Width = Mathf.Clamp(this.m_Width, min, 0x1869f);
            this.m_Height = Mathf.Clamp(this.m_Height, min, 0x1869f);
            if ((this.m_Width != width) || (this.m_Height != height))
            {
                this.Changed();
            }
        }