XRAnchorStore.LoadAnchor(String) Method

Definition

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

UnityEngine.XR.ARSubsystems.TrackableId

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.

Applies to