1. 程式人生 > >Unity切換場景

Unity切換場景

1.引用名詞空間:using UnityEngine.SceneManagement;

2.SceneManager.LoadScene("V2");//V2是要切換的場景名稱

3.要將場景Build才能用,不然會報錯