Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.XRSubsystems ←XRVps2Subsystem

TryGetAssetTrackingData

Gets the pose of a VPS asset's origin in the device's AR tracking space.

Declaration​

public bool TryGetAssetTrackingData(out XRVps2AssetTrackingData trackingData, string assetId = null)

Summary​

Gets the pose of a VPS asset's origin in the device's AR tracking 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).

Returns​

True if tracking data is available.

Parameters​

NameTypeSummary
trackingDataXRVps2AssetTrackingData
The asset's tracking data.
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.