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

TryTrackAsset

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

Declaration​

public bool TryTrackAsset(string assetId, out XRVps2Asset asset)

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
asset surfaces through GetChanges once its origin is first
tracked.

Returns​

True if the request was accepted; false if the id is not a valid
asset id.

Parameters​

NameTypeSummary
assetIdstring
The identifier of the VPS map asset.
assetXRVps2Asset
Receives the asset's current session-relative data.