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

TryCreateAnchor

Attempts to create a new anchor at localPose.

Declaration​

public bool TryCreateAnchor(Pose localPose, out ARVps2Anchor anchorOut)

Summary​

Attempts to create a new anchor at localPose.

Remarks​

The pose is in AR session space, not Unity world space: it is forwarded to the
subsystem unmodified, unlike ARAnchorManager, which takes a world-space
pose. To anchor at a world-space pose, such as the pose of a trackable or of
TryGetAssetTrackingData, convert it first with
origin.TrackablesParent.InverseTransformPose.

Returns​

true if the anchor was created; otherwise false.

Parameters​

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