ShowAtPosition() static private method

static private ShowAtPosition ( Rect buttonRect ) : bool
buttonRect UnityEngine.Rect
return bool
Exemplo n.º 1
0
 void DoLayersDropDown(Rect rect)
 {
     if (EditorGUI.DropdownButton(rect, s_LayerContent, FocusType.Passive, Styles.dropdown))
     {
         if (LayerVisibilityWindow.ShowAtPosition(rect))
         {
             GUIUtility.ExitGUI();
         }
     }
 }
Exemplo n.º 2
0
        private void DoLayersDropDown(Rect rect)
        {
            GUIStyle style = "DropDown";

            if (EditorGUI.DropdownButton(rect, Toolbar.s_LayerContent, FocusType.Passive, style))
            {
                if (LayerVisibilityWindow.ShowAtPosition(rect))
                {
                    GUIUtility.ExitGUI();
                }
            }
        }
Exemplo n.º 3
0
        private void DoLayersDropDown()
        {
            GUIStyle style = "DropDown";
            Rect     rect  = GUILayoutUtility.GetRect(Toolbar.s_LayerContent, style);

            if (EditorGUI.ButtonMouseDown(rect, Toolbar.s_LayerContent, FocusType.Passive, style))
            {
                Rect last = GUILayoutUtility.topLevel.GetLast();
                if (LayerVisibilityWindow.ShowAtPosition(last))
                {
                    GUIUtility.ExitGUI();
                }
            }
        }
Exemplo n.º 4
0
        private void DoLayersDropDown(Rect rect)
        {
            GUIStyle style = (GUIStyle)"DropDown";

            if (!EditorGUI.ButtonMouseDown(rect, Toolbar.s_LayerContent, FocusType.Passive, style) || !LayerVisibilityWindow.ShowAtPosition(rect))
            {
                return;
            }
            GUIUtility.ExitGUI();
        }