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

ARPersistentAnchorManager

↳ extends UnityEngine.XR.ARFoundation.ARTrackableManager
Manages persistent anchors....

Declaration

public partial class ARPersistentAnchorManager : ARTrackableManager<XRPersistentAnchorSubsystem, XRPersistentAnchorSubsystemDescriptor, Provider, XRPersistentAnchor, ARPersistentAnchor>

Summary

Manages persistent anchors.

Use this component to programmatically restore, remove, or query for persistent anchors. Persistent anchors are persistent Poses in the world that are generated by processed scans, and will be in the same real world location in future sessions. By placing virtual content relative to a Persistent Anchor, it can be restored to the same real world location in a future session.

This is a low level API to manage Persistent Anchors. For authoring virtual content in the Unity Editor, use the ARLocationManager and ARLocations instead.

Remarks

Subscribe to changes (added, updated, and removed) via the arPersistentAnchorStateChanged event.


Properties

NameTypeSummary
CloudLocalizationEnabledbool
-
ContinuousLocalizationEnabledbool
-
ContinuousServiceRequestIntervalSecondsfloat
-
DeviceMapDownloadEnabledbool
-
DeviceMappingLocalizationEnabledbool
-
DeviceMappingLocalizationRequestIntervalSecondsfloat
-
DeviceMappingTypeDeviceMappingType
-
DiagnosticsEnabledbool
-
GpsCorrectionForContinuousLocalizationbool
-
InitialServiceRequestIntervalSecondsfloat
-
InterpolationEnabledbool
-
InterpolationTimeSecondsfloat
-
JpegCompressionQualityint
-
TemporalFusionEnabledbool
-
TransformUpdateSmoothingEnabledbool
-
VpsDebuggerEnabledbool
-

Methods

NameTypeSummary
DestroyAnchorvoid
-
GetVpsSessionIdbool
-
async RestartSubsystemAsyncTask
-
RestartSubsystemAsyncCoroutineIEnumerator
-
TryCreateAnchorbool
-
TryGetDevicePoseAsGeolocationVpsGraphOperationError
-
TryTrackAnchorbool
-

Events

NameTypeSummary
arPersistentAnchorStateChangedAction<ARPersistentAnchorStateChangedEventArgs>
-
DebugInfoUpdatedAction<XRPersistentAnchorDebugInfo>
-
VpsDebuggerEventAction<VpsDebuggerDataEvent>
-

Relationships

derived: ARLocationManager