Пример #1
0
 void OnDisable()
 {
     AssemblyReloadEvents.beforeAssemblyReload -= Close;
     s_LastClosedTime = System.DateTime.Now.Ticks / System.TimeSpan.TicksPerMillisecond;
     s_AddCurvesPopup = null;
     s_Hierarchy      = null;
 }
Пример #2
0
        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 });
        }