AnchorSubsystemExtensions.LoadAnchorStoreAsync(XRAnchorSubsystem) Method

Definition

Caution

Obsolete and will be removed in future releases. Use XRAnchorStore.LoadAnchorStoreAsync() function instead.

Use this XRAnchorSubsystem to load an XRAnchorStore.

[System.Obsolete("Obsolete and will be removed in future releases.  Use XRAnchorStore.LoadAnchorStoreAsync() function instead.", true)]
public static System.Threading.Tasks.Task<Microsoft.MixedReality.OpenXR.XRAnchorStore> LoadAnchorStoreAsync (this UnityEngine.XR.ARSubsystems.XRAnchorSubsystem anchorSubsystem);
public static System.Threading.Tasks.Task<Microsoft.MixedReality.OpenXR.XRAnchorStore> LoadAnchorStoreAsync (this UnityEngine.XR.ARSubsystems.XRAnchorSubsystem anchorSubsystem);
[<System.Obsolete("Obsolete and will be removed in future releases.  Use XRAnchorStore.LoadAnchorStoreAsync() function instead.", true)>]
static member LoadAnchorStoreAsync : UnityEngine.XR.ARSubsystems.XRAnchorSubsystem -> System.Threading.Tasks.Task<Microsoft.MixedReality.OpenXR.XRAnchorStore>
static member LoadAnchorStoreAsync : UnityEngine.XR.ARSubsystems.XRAnchorSubsystem -> System.Threading.Tasks.Task<Microsoft.MixedReality.OpenXR.XRAnchorStore>
<Extension()>
Public Function LoadAnchorStoreAsync (anchorSubsystem As XRAnchorSubsystem) As Task(Of XRAnchorStore)

Parameters

anchorSubsystem
UnityEngine.XR.ARSubsystems.XRAnchorSubsystem

The UnityEngine.XR.ARSubsystems.XRAnchorSubsystem to receive the loaded anchors from the store.

Returns

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

Attributes

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