Editar

Compartir a través de


IMixedRealitySceneSystem.LoadNextContent Method

Definition

Loads the next content scene according to build index. Uses the last-loaded content scene as previous build index. If no next content exists, and wrap is false, no action is taken. Use NextContentExists to verify that this operation is possible (if not using wrap).

public System.Threading.Tasks.Task LoadNextContent (bool wrap = false, UnityEngine.SceneManagement.LoadSceneMode mode = UnityEngine.SceneManagement.LoadSceneMode.Single, Microsoft.MixedReality.Toolkit.SceneSystem.SceneActivationToken activationToken = default);
abstract member LoadNextContent : bool * UnityEngine.SceneManagement.LoadSceneMode * Microsoft.MixedReality.Toolkit.SceneSystem.SceneActivationToken -> System.Threading.Tasks.Task
Public Function LoadNextContent (Optional wrap As Boolean = false, Optional mode As LoadSceneMode = UnityEngine.SceneManagement.LoadSceneMode.Single, Optional activationToken As SceneActivationToken = Nothing) As Task

Parameters

wrap
Boolean

If true, if the current scene is the LAST content scene, the FIRST content scene will be loaded.

mode
UnityEngine.SceneManagement.LoadSceneMode

Additive mode will load the content additively. Single mode will first unload all loaded content scenes first.

activationToken
SceneActivationToken

Optional token for manual scene activation. Useful for loading screens and multiplayer. If not null, operation will wait until activationToken's AllowSceneActivation value is true before activating scene objects.

Returns

Task

Applies to