EditorSceneUtils.LoadScene(SceneInfo, Boolean, 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 load scene in editor using a scene object reference.
public:
static bool LoadScene(Microsoft::MixedReality::Toolkit::SceneSystem::SceneInfo sceneInfo, bool setAsFirst, [Runtime::InteropServices::Out] UnityEngine::SceneManagement::Scene % editorScene);
public static bool LoadScene (Microsoft.MixedReality.Toolkit.SceneSystem.SceneInfo sceneInfo, bool setAsFirst, out UnityEngine.SceneManagement.Scene editorScene);
static member LoadScene : Microsoft.MixedReality.Toolkit.SceneSystem.SceneInfo * bool * Scene -> bool
Public Shared Function LoadScene (sceneInfo As SceneInfo, setAsFirst As Boolean, ByRef editorScene As Scene) As Boolean
Parameters
- sceneInfo
- SceneInfo
- setAsFirst
- Boolean
Whether to set first in the hierarchy window.
- editorScene
- UnityEngine.SceneManagement.Scene
The loaded scene.
Returns
True if successful.