Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.VPS2 ←ARVps2Manager

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​

Attempts to get the pose of a VPS asset's origin, in AR session space.

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 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​

NameTypeSummary
trackingDataXRVps2AssetTrackingData
Receives the asset's tracking data on success.
assetIdstring
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.