XRAnchorTransferBatch.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.
Attempts to load a specified anchor from the transfer batch and reports it to Unity as an XRAnchor/ARAnchor.
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 anchor's identifier from the transfer batch.
Returns
The UnityEngine.XR.ARSubsystems.TrackableId of the resulting Unity anchor if successfully loaded, or TrackableId.invalidId if the given name is not found.
Remarks
It's then typically recommended to use an ARAnchorManager to access the resulting Unity anchor.