private static ShouldShowWindow ( |
||
activatorRect | ||
리턴 | bool |
private static bool ShouldShowWindow(Rect activatorRect)
{
if (((EditorApplication.timeSinceStartup - s_LastClosedTime) >= 0.2) || (activatorRect != s_LastActivatorRect))
{
s_LastActivatorRect = activatorRect;
return true;
}
return false;
}
internal static void Show(Rect activatorRect, PopupWindowContent windowContent, PopupLocationHelper.PopupLocation[] locationPriorityOrder, ShowMode showMode) { if (PopupWindow.ShouldShowWindow(activatorRect)) { PopupWindow popupWindow = ScriptableObject.CreateInstance <PopupWindow>(); if (popupWindow != null) { popupWindow.Init(activatorRect, windowContent, locationPriorityOrder, showMode); } GUIUtility.ExitGUI(); } }