Esempio n. 1
0
        public static void DeleteGUI()
        {
            View view           = WindowLayout.FindMainWindow();
            Rect screenPosition = view.screenPosition;
            DeleteWindowLayout windowWithRect = EditorWindow.GetWindowWithRect <DeleteWindowLayout>(new Rect(screenPosition.xMax - 180f, screenPosition.y + 20f, 200f, 150f), true, "Delete Window Layout");

            windowWithRect.m_Parent.window.m_DontSaveToLayout = true;
        }
Esempio n. 2
0
        public static void SaveGUI()
        {
            Rect screenPosition = WindowLayout.FindMainWindow().screenPosition;

            EditorWindow.GetWindowWithRect <SaveWindowLayout>(new Rect(screenPosition.xMax - 180f, screenPosition.y + 20f, 200f, 48f), true, "Save Window Layout").m_Parent.window.m_DontSaveToLayout = true;
        }