UnityEditor.PopupWindowContent.OnGUI C# (CSharp) 메소드

OnGUI() 공개 추상적인 메소드

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.
리턴 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");
        }