Class XRDepthSubsystem
An abstract class that provides a generic API for low-level depth detection features.
Inheritance
TrackingSubsystem<XRPointCloud, XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>
XRDepthSubsystem
Implements
Inherited Members
SubsystemWithProvider<XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>.OnCreate()
SubsystemWithProvider<XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>.OnStart()
SubsystemWithProvider<XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>.OnStop()
SubsystemWithProvider<XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>.OnDestroy()
SubsystemWithProvider<XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>.subsystemDescriptor
SubsystemWithProvider<XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>.provider
SubsystemWithProvider.OnStart()
SubsystemWithProvider.OnStop()
SubsystemWithProvider.OnDestroy()
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public class XRDepthSubsystem : TrackingSubsystem<XRPointCloud, XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>, ISubsystem
Remarks
This class can be used to access depth detection features in your app via accessing the generic API. It can also be extended to provide an implementation of a provider which provides the depth detection data to the higher level code.
Methods
Name | Description |
---|---|
GetChanges(Allocator) | Get the changes to point clouds (added, updated, and removed) since the last call to GetChanges(Allocator). |
GetPointCloudData(TrackableId, Allocator) | Retrieve point cloud data (positions, confidence values, and identifiers)
for the point cloud with the given |