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

ARVps2AnchorManager

↳ extends UnityEngine.XR.ARFoundation.ARTrackableManager
A trackable manager surfacing VPS2 anchors as ARVps2Anchor trackables.

Declaration​

public class ARVps2AnchorManager : ARTrackableManager<XRVps2AnchorSubsystem, XRVps2AnchorSubsystemDescriptor, Provider, XRVps2Anchor, ARVps2Anchor>

Remarks​

ARVps2Manager requires this component next to it and forwards its anchor methods here, so it is the usual entry point. Trackables live under the XR origin, so their transforms are in Unity world space. Disabling this component removes all anchors.


Methods​

NameTypeSummary
RemoveAnchorvoid
Stops tracking an anchor and destroys its trackable.
TryCreateAnchorbool
Attempts to create a new anchor at localPose.
TryGetAnchorPayloadbool
Gets the payload which encodes the anchor. The payload can be used to re-track
the anchor in a different VPS2 session.
TryTrackAnchorbool
Starts tracking the anchor encoded by anchorPayload.