Beispiel #1
0
    void saveScene()
    {
        EditorSceneManager.SaveScene(scene);
        //EditorApplication.SaveScene(scene);
        lastSaveTimeScene = DateTime.Now;
        isStarted         = true;
        if (showMessage)
        {
            Debug.Log("AutoSave saved: " + scene + " on " + lastSaveTimeScene);
        }
        AutoSaveScene repaintSaveWindow = (AutoSaveScene)EditorWindow.GetWindow(typeof(AutoSaveScene));

        repaintSaveWindow.Repaint();
    }
Beispiel #2
0
    static void Init()
    {
        AutoSaveScene saveWindow = (AutoSaveScene)EditorWindow.GetWindow(typeof(AutoSaveScene));

        saveWindow.Show();
    }