scenePath | Path of the scene. Should be relative to the project folder. Like: "Assets/MyScenes/MyScene.unity". |
mode | Allows you to select how to open the specified scene, and whether to keep existing scenes in the Hierarchy. See OpenSceneMode for more information about the options. |
Open a scene in the Editor.
Use this method for setting up what scenes should be open in the Hierarchy. This is method is also used when opening scenes though menu items. For runtime loading of scenes see SceneManager.LoadScene.