XRAnchorStore.LoadAsync(XRAnchorSubsystem) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This method is obsolete. Use the XRAnchorStore.LoadAnchorStoreAsync() function instead.
Caution
This method is obsolete. Use ARAnchorManager.LoadAnchorStoreAsync() instead.
Caution
This method is obsolete. Use the LoadAnchorStoreAsync() extension method on an XRAnchorSubsystem or an ARAnchorManager instead.
Deprecated: Uses an existing UnityEngine.XR.ARSubsystems.XRAnchorSubsystem to load an XRAnchorStore.
[System.Obsolete("This method is obsolete. Use the XRAnchorStore.LoadAnchorStoreAsync() function instead.", false)]
public static System.Threading.Tasks.Task<Microsoft.MixedReality.OpenXR.XRAnchorStore> LoadAsync (UnityEngine.XR.ARSubsystems.XRAnchorSubsystem anchorSubsystem);
[System.Obsolete("This method is obsolete. Use ARAnchorManager.LoadAnchorStoreAsync() instead.", false)]
public static System.Threading.Tasks.Task<Microsoft.MixedReality.OpenXR.XRAnchorStore> LoadAsync (UnityEngine.XR.ARSubsystems.XRAnchorSubsystem anchorSubsystem);
[System.Obsolete("This method is obsolete. Use the LoadAnchorStoreAsync() extension method on an XRAnchorSubsystem or an ARAnchorManager instead.", false)]
public static System.Threading.Tasks.Task<Microsoft.MixedReality.OpenXR.XRAnchorStore> LoadAsync (UnityEngine.XR.ARSubsystems.XRAnchorSubsystem anchorSubsystem);
[<System.Obsolete("This method is obsolete. Use the XRAnchorStore.LoadAnchorStoreAsync() function instead.", false)>]
static member LoadAsync : UnityEngine.XR.ARSubsystems.XRAnchorSubsystem -> System.Threading.Tasks.Task<Microsoft.MixedReality.OpenXR.XRAnchorStore>
[<System.Obsolete("This method is obsolete. Use ARAnchorManager.LoadAnchorStoreAsync() instead.", false)>]
static member LoadAsync : UnityEngine.XR.ARSubsystems.XRAnchorSubsystem -> System.Threading.Tasks.Task<Microsoft.MixedReality.OpenXR.XRAnchorStore>
[<System.Obsolete("This method is obsolete. Use the LoadAnchorStoreAsync() extension method on an XRAnchorSubsystem or an ARAnchorManager instead.", false)>]
static member LoadAsync : UnityEngine.XR.ARSubsystems.XRAnchorSubsystem -> System.Threading.Tasks.Task<Microsoft.MixedReality.OpenXR.XRAnchorStore>
Public Shared Function LoadAsync (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.
- 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.