Partager via


XRAnchorStore.LoadAnchorStoreAsync(XRAnchorSubsystem) Method

Definition

public static System.Threading.Tasks.Task<Microsoft.MixedReality.OpenXR.XRAnchorStore> LoadAnchorStoreAsync (UnityEngine.XR.ARSubsystems.XRAnchorSubsystem anchorSubsystem);
static member LoadAnchorStoreAsync : UnityEngine.XR.ARSubsystems.XRAnchorSubsystem -> System.Threading.Tasks.Task<Microsoft.MixedReality.OpenXR.XRAnchorStore>
Public Shared Function LoadAnchorStoreAsync (anchorSubsystem As XRAnchorSubsystem) As Task(Of XRAnchorStore)

Parameters

anchorSubsystem
UnityEngine.XR.ARSubsystems.XRAnchorSubsystem

Returns

A task which, when completed, will contain a valid XRAnchorStore, or contain null if the anchor store could not be loaded.

Remarks

The anchor subsystem might not be available if the XR session is not initialized at start up. In this case, the returned anchor store might be null. Make sure to reload the anchor store after the XR session is initialized.

Applies to