Class XRDepthSubsystem.Provider
The interface that each derived class must implement.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Syntax
public abstract class Provider : SubsystemProvider<XRDepthSubsystem>
Methods
Destroy()
Called when the subsystem is destroyed. Stop() will be called first if the subsystem is running.
Declaration
public override void Destroy()
Overrides
GetChanges(XRPointCloud, Allocator)
Get the changes to planes (added, updated, and removed) since the last call to GetChanges(XRPointCloud, Allocator).
Declaration
public abstract TrackableChanges<XRPointCloud> GetChanges(XRPointCloud defaultPointCloud, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
XRPointCloud | defaultPointCloud | The default point cloud. This should be used to initialize the returned |
Unity.Collections.Allocator | allocator | An |
Returns
Type | Description |
---|---|
TrackableChanges<XRPointCloud> | TrackableChanges<T> describing the reference points that have been added, updated, and removed
since the last call to GetChanges(XRPointCloud, Allocator). The changes should be allocated using
|
GetPointCloudData(TrackableId, Allocator)
Generate point cloud data (positions, confidence values, and identifiers)
for the point cloud with the given trackableId
.
Declaration
public abstract XRPointCloudData GetPointCloudData(TrackableId trackableId, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
TrackableId | trackableId | The point cloud for which to retrieve data. |
Unity.Collections.Allocator | allocator | The allocator to use when creating the |
Returns
Type | Description |
---|---|
XRPointCloudData | A new XRPointCloudData with newly allocated |
Start()
Called when the subsystem starts. Will not be called again until Stop().
Declaration
public override void Start()
Overrides
Stop()
Called when the subsystem stops. Will not be called before Start().
Declaration
public override void Stop()