Editar

Compartir a través de


EditorSceneUtils.LoadScene(SceneInfo, Boolean, Scene) Method

Definition

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.

Applies to