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

TryTrackAsset

Requests tracking of a VPS map asset's origin, identified by its asset ID.

Declaration​

public bool TryTrackAsset(string assetId, out ARVps2Asset assetOut)

Summary​

Requests tracking of a VPS map asset's origin, identified by its asset ID.

Remarks​

The asset must be known to the session: assets become known as a localize
request fetches them, so this can be called as soon as the asset's site has
been submitted with TryLocalize. The
returned trackable starts with TrackingState.None at the scene origin
and snaps to the asset's origin when tracking data first arrives. Requesting
an asset that is already tracked returns its existing trackable.

Returns​

true if the request was accepted; false if the
subsystem is unavailable or the id is not a valid asset id.

Parameters​

NameTypeSummary
assetIdstring
The identifier of the VPS map asset.
assetOutARVps2Asset
The asset's trackable.