Unity 基础 场景切换

Unity 基础 场景切换


Application.LoadLevel("nextSceneName");

注意要将场景先加到build settings

否则会报错
couldn't be loaded because it has not been added to the build settings.
To add a level to the build settings use the menu File->Build Settings...


你可能感兴趣的:(Unity 基础 场景切换)