internal static void Show(Rect activatorRect, PopupWindowContent windowContent, TooltipLocation[] locationPriorityOrder) { if (ShouldShowWindow(activatorRect)) { var isInstance = _sEditorWindowWithoutFocus == null; if (isInstance) _sEditorWindowWithoutFocus = CreateInstance<TooltipServiceWindow>(); _sEditorWindowWithoutFocus.Init(activatorRect, windowContent, locationPriorityOrder); } }
protected void OnEnable() { _sEditorWindowWithoutFocus = this; }
protected void OnDisable() { s_LastClosedTime = EditorApplication.timeSinceStartup; if (m_WindowContent != null) { m_WindowContent.OnClose(); } _sEditorWindowWithoutFocus = null; }