- [MenuItem("Edit/Play-Unplay, But From Prelaunch Scene %0")]
- publicstaticvoidPlayFromPrelaunchScene()
- {
- if(EditorApplication.isPlaying ==true)
- {
- EditorApplication.isPlaying =false;
- return;
- }
- EditorApplication.SaveCurrentSceneIfUserWantsTo();
- EditorApplication.OpenScene(
- "Assets/stuff/Scenes/__preEverythingScene.unity");
- EditorApplication.isPlaying =true;
- }
- }
文章標籤
全站熱搜
