• [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;
  • }
  • }
 
文章標籤
全站熱搜
創作者介紹
創作者 GABY 的頭像
GABY

江鳥Unity 分享

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