执行方法
// 引入空间
using UnityEngine.SceneManagement;
public class ScenesJump {
// name:要跳转的场景名字
public static void Jump(string name) {
// 场景跳转
SceneManager.LoadScene(name);
}
}
要跳转的场景一定要放到Scenes In Build下,具体路径在File->Build Settings。
标签:UnityEngine,场景,name,Build,跳转,public From: https://www.cnblogs.com/wuzhongke/p/16847791.html