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

TryTrackAnchor


Declaration​

public bool TryTrackAnchor(string anchorPayload, out ARVps2Anchor anchorOut)

Summary​

Starts tracking the anchor encoded by anchorPayload.
Forwards to TryTrackAnchor.

Remarks​

Use this only to restore an AR anchor the app created itself.

Returns​

true if the anchor was accepted for tracking; otherwise false.

Notice

An anchor payload is no longer the preferred method to identify the map to localize against: use TryLocalize with a site ID, or its lat/long overload

Notice

An anchor will not resolve against a different site or a different asset of the same site.

Parameters​

NameTypeSummary
anchorPayloadstring
The payload which encodes the anchor.
anchorOutout ARVps2Anchor
The tracked anchor.