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
| Name | Type | Summary |
|---|---|---|
| CurrentConfiguration | XRPersistentAnchorConfiguration | - |
| readonly IsMockProvider | bool | - |
Methods
| Name | Type | Summary |
|---|---|---|
| GetChanges | TrackableChanges<XRPersistentAnchor> | - |
| GetVpsSessionId | bool | - |
| Start | void | - |
| TryAddAnchor | bool | - |
| TryGetDevicePoseAsGeolocation | VpsGraphOperationError | - |
| TryLocalize | bool | - |
| TryRemoveAnchor | bool | - |
| TryRestoreAnchor | bool | - |
Events
| Name | Type | Summary |
|---|---|---|
| debugInfoProvided | Action<XRPersistentAnchorDebugInfo> | - |
| OnConfigurationChanged | Action<XRPersistentAnchorConfiguration> | - |
| VpsDebuggerEvent | Action<VpsDebuggerDataEvent> | - |
Relationships
derived: NsdkPersistentAnchorSubsystem