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

XRVps2AnchorSubsystem

↳ extends UnityEngine.XR.ARSubsystems.TrackingSubsystem
A tracking subsystem serving VPS2 anchors as trackables.

Declaration​

public class XRVps2AnchorSubsystem : TrackingSubsystem<XRVps2Anchor, XRVps2AnchorSubsystem, XRVps2AnchorSubsystemDescriptor, Provider>

Remarks​

The VPS2 feature's lifecycle is owned by XRVps2Subsystem; this subsystem only creates, tracks, and removes anchors against it. Poses are in AR session space.


Methods​

NameTypeSummary
GetAnchorPayloadbool
Get the payload which encodes the anchor. The payload can be used to re-track
the anchor in a different VPS2 session.
GetChangesTrackableChanges<XRVps2Anchor>
Get the changes (added, updated, and removed) to anchors since the last call
to this method.
TryCreateAnchorbool
Create a new anchor located at pose in the device's AR tracking space.
TryRemoveAnchorbool
Stop tracking an anchor. The anchor surfaces one removed change through
GetChanges before it is forgotten.
TryTrackAnchorbool
Start tracking the anchor encoded by anchorPayload.

Relationships​

derived: NsdkVps2AnchorSubsystem