OnGUI() public méthode

public OnGUI ( Rect position, EditorWindow owner ) : void
position UnityEngine.Rect
owner EditorWindow
Résultat void
Exemple #1
0
 internal void OnGUI()
 {
     if (Event.current.type != EventType.Layout)
     {
         if (s_Hierarchy == null)
         {
             s_Hierarchy = new AddCurvesPopupHierarchy(s_State);
         }
         Rect position = new Rect(1f, 1f, windowSize.x - 3f, windowSize.y - 3f);
         GUI.Box(new Rect(0f, 0f, windowSize.x, windowSize.y), GUIContent.none, new GUIStyle("grey_border"));
         s_Hierarchy.OnGUI(position, this);
     }
 }
        internal void OnGUI()
        {
            // We do not use the layout event
            if (Event.current.type == EventType.Layout)
            {
                return;
            }

            Vector2 windowSize = GetWindowSize();

            Rect rect = new Rect(1, 1, windowSize.x - k_WindowPadding, windowSize.y - k_WindowPadding);

            GUI.Box(new Rect(0, 0, windowSize.x, windowSize.y), GUIContent.none, "grey_border");
            s_Hierarchy.OnGUI(rect, this);
        }
Exemple #3
0
        internal void OnGUI()
        {
            // We do not use the layout event
            if (Event.current.type == EventType.Layout)
            {
                return;
            }

            if (s_Hierarchy == null)
            {
                s_Hierarchy = new AddCurvesPopupHierarchy();
            }

            Rect rect = new Rect(1, 1, windowSize.x - k_WindowPadding, windowSize.y - k_WindowPadding);

            GUI.Box(new Rect(0, 0, windowSize.x, windowSize.y), GUIContent.none, "grey_border");
            s_Hierarchy.OnGUI(rect, this);
        }