public static void Init() { // Gets the existing version of this window or creates a new one, then show it AutoSaver _instance = (AutoSaver)GetWindow(typeof(AutoSaver)); _instance.Show(); }
static void Init() { AutoSaver window = (AutoSaver)GetWindowWithRect( typeof(AutoSaver), new Rect(0, 0, 160, 60)); window.Show(); }