1.引用名词空间:using UnityEngine.SceneManagement; 2.SceneManager.LoadScene("V2");//V2是要切换的场景名称 3.要将场景Build才能用,不然会报错