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
| Name | Type | Summary |
|---|---|---|
| CloudLocalizationEnabled | bool | - |
| ContinuousLocalizationEnabled | bool | - |
| ContinuousServiceRequestIntervalSeconds | float | - |
| DeviceMapDownloadEnabled | bool | - |
| DeviceMappingLocalizationEnabled | bool | - |
| DeviceMappingLocalizationRequestIntervalSeconds | float | - |
| DeviceMappingType | DeviceMappingType | - |
| DiagnosticsEnabled | bool | - |
| GpsCorrectionForContinuousLocalization | bool | - |
| InitialServiceRequestIntervalSeconds | float | - |
| InterpolationEnabled | bool | - |
| InterpolationTimeSeconds | float | - |
| JpegCompressionQuality | int | - |
| TemporalFusionEnabled | bool | - |
| TransformUpdateSmoothingEnabled | bool | - |
| VpsDebuggerEnabled | bool | - |
Methods
| Name | Type | Summary |
|---|---|---|
| DestroyAnchor | void | - |
| GetVpsSessionId | bool | - |
| async RestartSubsystemAsync | Task | - |
| RestartSubsystemAsyncCoroutine | IEnumerator | - |
| TryCreateAnchor | bool | - |
| TryGetDevicePoseAsGeolocation | VpsGraphOperationError | - |
| TryTrackAnchor | bool | - |
Events
| Name | Type | Summary |
|---|---|---|
| arPersistentAnchorStateChanged | Action<ARPersistentAnchorStateChangedEventArgs> | - |
| DebugInfoUpdated | Action<XRPersistentAnchorDebugInfo> | - |
| VpsDebuggerEvent | Action<VpsDebuggerDataEvent> | - |
Relationships
derived: ARLocationManager