private void OnEnable() { // Rebuild the content after domain reload. if (content != null) { content.Build(rootVisualElement); } }
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); }