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

TryGetAnchorPayload


Declaration​

public bool TryGetAnchorPayload(ARVps2Anchor anchor, out string payload)

Summary​

Gets the payload which encodes the anchor. The payload can be used to re-track
the anchor in a different VPS2 session.

Returns​

true if the payload is available; otherwise false.

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. To start tracking an anchor in a different session, first localize to its site with TryLocalize, then call TryTrackAnchor.

Parameters​

NameTypeSummary
anchorARVps2Anchor
The anchor whose payload to get.
payloadout string
Receives the payload on success.