UnityEditor.SpriteUtilityWindow.DoTextureGUI C# (CSharp) Method

DoTextureGUI() protected method

protected DoTextureGUI ( ) : void
return void
        protected void DoTextureGUI()
        {
            if (this.m_Texture != null)
            {
                if (this.m_Zoom < 0f)
                {
                    this.m_Zoom = this.GetMinZoom();
                }
                this.m_TextureRect = new Rect((this.m_TextureViewRect.width / 2f) - ((this.m_Texture.width * this.m_Zoom) / 2f), (this.m_TextureViewRect.height / 2f) - ((this.m_Texture.height * this.m_Zoom) / 2f), this.m_Texture.width * this.m_Zoom, this.m_Texture.height * this.m_Zoom);
                this.HandleScrollbars();
                this.SetupHandlesMatrix();
                this.HandleZoom();
                this.HandlePanning();
                this.DrawScreenspaceBackground();
                GUIClip.Push(this.m_TextureViewRect, -this.m_ScrollPosition, Vector2.zero, false);
                if (Event.current.type == EventType.Repaint)
                {
                    this.DrawTexturespaceBackground();
                    this.DrawTexture();
                    this.DrawGizmos();
                }
                this.DoTextureGUIExtras();
                GUIClip.Pop();
            }
        }