XRAnchorStore.LoadAnchor(String) 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.
Begin loading an anchor from the anchor store into the Unity scene. On a future update of the ARAnchorManager or XRAnchorSubsystem, a new corresponding anchor will be created.
public UnityEngine.XR.ARSubsystems.TrackableId LoadAnchor (string name);
member this.LoadAnchor : string -> UnityEngine.XR.ARSubsystems.TrackableId
Public Function LoadAnchor (name As String) As TrackableId
Parameters
- name
- String
The name of the anchor to be loaded from the store.
Returns
The TrackableId which the anchor will use once it is created.
Remarks
If the persisted anchor has already been loaded, the TrackableId for the existing anchor in the scene will be returned.