Version: 2017.2

SceneManager.SetActiveScene

切换到手册
public static bool SetActiveScene (SceneManagement.Scene scene);

参数

scene 要进行设置的场景。

返回

bool 如果场景尚未加载,则返回 false。

描述

将场景设置为活动状态。

The active Scene is the Scene which will be used as the target for new GameObjects instantiated by scripts.