TryGetAssetTrackingData
Attempts to get the pose of a VPS asset's origin, in AR session space.
Declaration
public bool TryGetAssetTrackingData(out XRVps2AssetTrackingData trackingData, string assetId = null)
Summary
Remarks
Polling drives tracking: the first call for an asset starts tracking its origin,
so keep polling while this returns false. Data is only served while the
asset is fully tracked; false also covers lapsed tracking and an asset id
not yet known to the session (e.g. a TryLocalize for its
site is still in flight). The pose relates the asset's origin to the AR session space
origin and is not relative to the current camera pose. The pose is in AR session space, like
TryCreateAnchor and TryGetPose; for Unity world-space
placement, prefer the ARVps2AssetManager trackables, which follow
the asset origin automatically.
Returns
true if tracking data is available; otherwise false.
Parameters
| Name | Type | Summary |
|---|---|---|
| trackingData | out XRVps2AssetTrackingData | Receives the asset's tracking data on success. |
| assetId | string | The identifier of the VPS map asset, or null for the asset the device is currently localized to (see LocalizedAsset). Only null selects the localized asset; an empty id returns false. |
Attempts to get the pose of a VPS asset's origin, in AR session space.