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

XRPersistentAnchorSubsystem

↳ extends UnityEngine.XR.ARSubsystems.TrackingSubsystem
Base class for a persistent anchor subsystem.

Declaration

public class XRPersistentAnchorSubsystem : TrackingSubsystem<XRPersistentAnchor, XRPersistentAnchorSubsystem, XRPersistentAnchorSubsystemDescriptor, Provider>

Remarks

An anchor is a pose in the physical environment that is tracked by an XR device. As the device refines its understanding of the environment, anchors will be updated, allowing you to keep virtual content connected to a real-world position and orientation. This abstract class should be implemented by an XR provider and instantiated using the SubsystemManager to enumerate the available XRPersistentAnchorSubsystemDescriptors.


Constructors

public XRPersistentAnchorSubsystem()

Properties

NameTypeSummary
CurrentConfigurationXRPersistentAnchorConfiguration
-
readonly IsMockProviderbool
-

Methods

NameTypeSummary
GetChangesTrackableChanges<XRPersistentAnchor>
-
GetVpsSessionIdbool
-
Startvoid
-
TryAddAnchorbool
-
TryGetDevicePoseAsGeolocationVpsGraphOperationError
-
TryLocalizebool
-
TryRemoveAnchorbool
-
TryRestoreAnchorbool
-

Events

NameTypeSummary
debugInfoProvidedAction<XRPersistentAnchorDebugInfo>
-
OnConfigurationChangedAction<XRPersistentAnchorConfiguration>
-
VpsDebuggerEventAction<VpsDebuggerDataEvent>
-

Relationships

derived: NsdkSimulationPersistentAnchorSubsystem
derived: NsdkPersistentAnchorSubsystem