[경고&에러 대응] `UnityEditor.EditorApplication.NewScene()' is obsolete by pbkim

EditorApplication.SaveScene();
EditorApplication.NewScene();

->

#if UNITY_2017_2_OR_NEWER   //added for unity2017
EditorSceneManager.SaveScene(EditorSceneManager.GetActiveScene());
EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects);
#else
EditorApplication.SaveScene();
EditorApplication.NewScene();
#endif


구글 468*60


Linked in

linknow profile