Пример #1
0
 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);
     }
 }
Пример #2
0
 protected void OnEnable()
 {
     _sEditorWindowWithoutFocus = this;
 }
Пример #3
0
 protected void OnDisable()
 {
     s_LastClosedTime = EditorApplication.timeSinceStartup;
     if (m_WindowContent != null)
     {
         m_WindowContent.OnClose();
     }
     _sEditorWindowWithoutFocus = null;
 }