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

TryTrackAnchor

Start tracking the anchor encoded by anchorPayload.

Declaration​

public bool TryTrackAnchor(string anchorPayload, out XRVps2Anchor anchor)

Summary​

Start tracking the anchor encoded by anchorPayload.

Remarks​

For restoring an anchor the app created itself.

Returns​

True if the anchor was accepted for tracking.

Notice

An anchor is tied to the site asset it was created against, so it will not resolve against a different site or a different asset of the same site; target a map through XRVps2Subsystem by site ID or coordinate instead.

Parameters​

NameTypeSummary
anchorPayloadstring
The payload which encodes the anchor.
anchorout XRVps2Anchor
The tracked anchor.