示例#1
0
    static void Init()
    {
        // Get existing open window or if none, make a new one:
        AutoSave window = (AutoSave)EditorWindow.GetWindow(typeof(AutoSave));

        window.Show();
    }
示例#2
0
    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);
    }
示例#3
0
    public static void ShowWindow()
    {
        AutoSave autosave = EditorWindow.GetWindow <AutoSave>();

        autosave.Show();
    }
示例#4
0
    static void Init()
    {
        AutoSave saveWindow = (AutoSave)EditorWindow.GetWindow(typeof(AutoSave));

        saveWindow.Show();
    }
示例#5
0
    static void Init()
    {
        AutoSave window = (AutoSave)EditorWindow.GetWindowWithRect(typeof(AutoSave), new Rect(0, 0, 300, 40));

        window.Show();
    }