Add VRChat and GitHub packages to Unity project
This commit is contained in:
1 parent
0334a52b21
commit
85538aaccc
3297 files changed
+847877
No files matched your search
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
public class SceneSaver
|
||||
{
|
||||
static public void SaveScene()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
var activeScene = UnityEditor.SceneManagement.EditorSceneManager.GetActiveScene();
|
||||
UnityEditor.SceneManagement.EditorSceneManager.SaveScene(activeScene);
|
||||
|
||||
UnityEditor.EditorApplication.isPaused = false;
|
||||
UnityEditor.EditorApplication.isPlaying = false;
|
||||
|
||||
UnityEditor.SceneManagement.EditorSceneManager.OpenScene(activeScene.name);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user