XRAnchorTransferBatch.AddAnchor(TrackableId, 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.
Tries to convert and add an anchor with the corresponding UnityEngine.XR.ARSubsystems.TrackableId to an export list.
public bool AddAnchor (UnityEngine.XR.ARSubsystems.TrackableId trackableId, string name);
member this.AddAnchor : UnityEngine.XR.ARSubsystems.TrackableId * string -> bool
Public Function AddAnchor (trackableId As TrackableId, name As String) As Boolean
Parameters
- trackableId
- UnityEngine.XR.ARSubsystems.TrackableId
The UnityEngine.XR.ARSubsystems.TrackableId of an anchor to be exported.
- name
- String
A string to identify this anchor upon import to another device.
Returns
Whether the anchor was successfully converted into a Perception SpatialAnchor and added to the export list.
Remarks
Call ExportAsync(XRAnchorTransferBatch) to get the transferable anchor data.