static void Init() { // Get existing open window or if none, make a new one: AutoSave window = (AutoSave)EditorWindow.GetWindow(typeof(AutoSave)); window.Show(); }
static void Init() { AutoSave saveWindow = (AutoSave)EditorWindow.GetWindow(typeof(AutoSave)); saveWindow.Show(); Debug.Log("启动自动存储"); //Thread thread = new Thread(new ParameterizedThreadStart((object obj) => //{ // AutoSave autoSave = obj as AutoSave; // Debug.Log("启动自动存储线程"); // autoSave.Auto(); // Thread.Sleep(1000); //})); //thread.Start(saveWindow); }
public static void ShowWindow() { AutoSave autosave = EditorWindow.GetWindow <AutoSave>(); autosave.Show(); }
static void Init() { AutoSave saveWindow = (AutoSave)EditorWindow.GetWindow(typeof(AutoSave)); saveWindow.Show(); }
static void Init() { AutoSave window = (AutoSave)EditorWindow.GetWindowWithRect(typeof(AutoSave), new Rect(0, 0, 300, 40)); window.Show(); }