다음을 통해 공유


XRAnchorTransferBatch.LoadAnchor(String) Method

Definition

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

UnityEngine.XR.ARSubsystems.TrackableId

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.

Applies to