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

TryCreateAnchor


Declaration​

public bool TryCreateAnchor(Pose localPose, out ARVps2Anchor anchorOut)

Summary​

Attempts to create a new anchor at localPose, in AR session
space. Forwards to TryCreateAnchor.

Remarks​

Anchors mark a place in the world that content should stay attached to. VPS2 must
localize to a map before anchors can be created for it — use
TryLocalize or its lat/long overload — and an anchor only
tracks with the asset of the site that was active when it was created.

Returns​

true if the anchor was created; otherwise false.

Parameters​

NameTypeSummary
localPosePose
The pose, in AR session space, of the anchor.
anchorOutout ARVps2Anchor
The created anchor.