Editar

Partilhar via


MixedRealitySceneSystem.LoadPrevContent Method

Definition

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

public System.Threading.Tasks.Task LoadPrevContent (bool wrap = false, UnityEngine.SceneManagement.LoadSceneMode mode = UnityEngine.SceneManagement.LoadSceneMode.Single, Microsoft.MixedReality.Toolkit.SceneSystem.SceneActivationToken activationToken = default);
abstract member LoadPrevContent : bool * UnityEngine.SceneManagement.LoadSceneMode * Microsoft.MixedReality.Toolkit.SceneSystem.SceneActivationToken -> System.Threading.Tasks.Task
override this.LoadPrevContent : bool * UnityEngine.SceneManagement.LoadSceneMode * Microsoft.MixedReality.Toolkit.SceneSystem.SceneActivationToken -> System.Threading.Tasks.Task
Public Function LoadPrevContent (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 FIRST content scene, the LAST 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

Implements

Applies to