• [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;
  • }
  • }
 
arrow
arrow
    全站熱搜

    GABY 發表在 痞客邦 留言(0) 人氣()