Example #1
0
 private void OnEnable()
 {
     // Rebuild the content after domain reload.
     if (content != null)
     {
         content.Build(rootVisualElement);
     }
 }
Example #2
0
        public void Show(Rect activatorRect, UIE_PopupWindowContent content)
        {
            base.hideFlags      = HideFlags.DontSave;
            base.wantsMouseMove = true;

            this.content = content;

            Vector2 size = content.GetWindowSize();

            content.Build(rootVisualElement);

            activatorRect = GUIUtility.GUIToScreenRect(activatorRect);
            base.ShowAsDropDown(activatorRect, size);
        }