void OnDisable() { AssemblyReloadEvents.beforeAssemblyReload -= Close; s_LastClosedTime = System.DateTime.Now.Ticks / System.TimeSpan.TicksPerMillisecond; s_AddCurvesPopup = null; s_Hierarchy = null; }
void Init(Rect buttonRect) { s_Hierarchy = new AddCurvesPopupHierarchy(); s_Hierarchy.InitIfNeeded(this, new Rect(0, 0, k_WindowMinWidth, k_WindowFixedHeight)); buttonRect = GUIUtility.GUIToScreenRect(buttonRect); ShowAsDropDown(buttonRect, GetWindowSize(), new[] { PopupLocation.Right }); }