Unity開發-技巧與常見問題

場景切換 using UnityEngine.SceneManagement; SceneManager.LoadScene(""); //最新的方法 Application.LoadLevel("scene1"); //經過場景名,棄用 Application.LoadLevel(1); //經過索引,棄用 若是要保留場景的某些物體,則在調用切換場景的函數前,先調用 DontDestroyOnL
相關文章
相關標籤/搜索