EditorSceneUtils.SetActiveScene(Scene) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to set the active scene and catches all the various ways it can go wrong. Returns true if successful.
public:
static bool SetActiveScene(UnityEngine::SceneManagement::Scene scene);
public static bool SetActiveScene (UnityEngine.SceneManagement.Scene scene);
static member SetActiveScene : UnityEngine.SceneManagement.Scene -> bool
Public Shared Function SetActiveScene (scene As Scene) As Boolean
Parameters
- scene
- UnityEngine.SceneManagement.Scene