ShowAtPosition() static private method

static private ShowAtPosition ( Rect buttonRect ) : bool
buttonRect UnityEngine.Rect
return bool
 void DoLayersDropDown(Rect rect)
 {
     if (EditorGUI.DropdownButton(rect, s_LayerContent, FocusType.Passive, Styles.dropdown))
     {
         if (LayerVisibilityWindow.ShowAtPosition(rect))
         {
             GUIUtility.ExitGUI();
         }
     }
 }
Example #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();
                }
            }
        }
Example #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();
                }
            }
        }
Example #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();
        }