UnityEditor.PopupLocationHelper.GetDropDownRect C# (CSharp) Method

GetDropDownRect() public static method

public static GetDropDownRect ( Rect buttonRect, Vector2 minSize, Vector2 maxSize, ContainerWindow popupContainerWindow ) : Rect
buttonRect UnityEngine.Rect
minSize UnityEngine.Vector2
maxSize UnityEngine.Vector2
popupContainerWindow ContainerWindow
return UnityEngine.Rect
        public static Rect GetDropDownRect(Rect buttonRect, Vector2 minSize, Vector2 maxSize, ContainerWindow popupContainerWindow)
        {
            return GetDropDownRect(buttonRect, minSize, maxSize, popupContainerWindow, null);
        }

Same methods

PopupLocationHelper::GetDropDownRect ( Rect buttonRect, Vector2 minSize, Vector2 maxSize, ContainerWindow popupContainerWindow, PopupLocation locationPriorityOrder ) : Rect

Usage Example

        private void Init(Rect activatorRect, PopupWindowContent windowContent, PopupLocationHelper.PopupLocation[] locationPriorityOrder)
        {
            this.m_WindowContent = windowContent;
            this.m_WindowContent.editorWindow = (EditorWindow)this;
            this.m_ActivatorRect         = GUIUtility.GUIToScreenRect(activatorRect);
            this.m_LastWantedSize        = windowContent.GetWindowSize();
            this.m_LocationPriorityOrder = locationPriorityOrder;
            Vector2 vector2 = windowContent.GetWindowSize() + new Vector2(this.m_BorderWidth * 2f, this.m_BorderWidth * 2f);

            this.position = PopupLocationHelper.GetDropDownRect(this.m_ActivatorRect, vector2, vector2, (ContainerWindow)null, this.m_LocationPriorityOrder);
            this.ShowPopup();
            this.Repaint();
        }
All Usage Examples Of UnityEditor.PopupLocationHelper::GetDropDownRect