XRVps2Subsystem
↳ extends UnityEngine.SubsystemsImplementation.SubsystemWithProvider
Declaration
public class XRVps2Subsystem : SubsystemWithProvider<XRVps2Subsystem, XRVps2SubsystemDescriptor, Provider>Summary
The subsystem owning the VPS2 feature's lifecycle: configuration, localization, and geolocation. Anchors and asset origins are served by the XRVps2AnchorSubsystem and XRVps2AssetSubsystem trackable subsystems, which run against the feature this subsystem manages.
Constructors
public XRVps2Subsystem()
Properties
Methods
| Name | Type | Summary |
|---|---|---|
| GetDeviceGeolocation | XRVps2Geolocation | Get the geolocation of the device's last known camera pose. |
| GetLatestDebuggerData | List<VpsDebuggerDataEvent> | Get all the debugger data since the last time this method was called. |
| GetLatestLocalization | XRVps2Localization | Get the latest VPS2 localization. The localization contains the metadata required to perform bidirectional conversions between the application’s AR tracking space and the global coordinate system (lat/lng/alt/heading). |
| GetLatestLocalizationRequestRecords | List<XRVps2LocalizationRequestRecord> | Get all the network request records since the last time this method was called. |
| GetPose | XRVps2Pose | Convert a position and orientation in the global coordinate system to a pose in the device's AR tracking space. |
| GetSessionId | bool | Get the session id, if one exists. |
| TryGetAssetTrackingData | bool | Gets the pose of a VPS asset's origin in the device's AR tracking space. |
| TryGetPose | bool | Convert a position and orientation in the global coordinate system to a pose in the device's AR tracking space, using the latest VPS2 localization. |
| TryLocalize | bool | Requests localization to a site, identified by its site ID. |
Relationships
derived: NsdkVps2Subsystem
Nodes farther than this distance from the device are skipped during anchor localization.
When only GPS is available (no geo-correction), the effective gate is 2x this value.
Pass 0 to use the default value (100 meters geo-corrected, 200 meters GPS-only).
Pass -1 to disable the distance check entirely.