UnityEditor.PopupWindowContent.OnGUI C# (CSharp) Method

OnGUI() public abstract method

Callback for drawing GUI controls for the popup window.

public abstract OnGUI ( Rect rect ) : void
rect UnityEngine.Rect The rectangle to draw the GUI inside.
return void
        public abstract void OnGUI(Rect rect);
        /// <summary>

Usage Example

示例#1
0
        internal void OnGUI()
        {
            FitWindowToContent();
            Rect windowRect = new Rect(m_BorderWidth, m_BorderWidth, position.width - 2 * m_BorderWidth, position.height - 2 * m_BorderWidth);

            m_WindowContent.OnGUI(windowRect);
            GUI.Label(new Rect(0, 0, position.width, position.height), GUIContent.none, "grey_border");
        }