Class XRBoundingBoxSubsystem.Provider
The provider API for XRBoundingBoxSubsystem-derived classes to implement.
Inherited Members
SubsystemProvider<XRBoundingBoxSubsystem>.TryInitialize()
SubsystemProvider<XRBoundingBoxSubsystem>.Start()
SubsystemProvider<XRBoundingBoxSubsystem>.Stop()
SubsystemProvider<XRBoundingBoxSubsystem>.Destroy()
SubsystemProvider.running
Namespace: UnityEngine.XR.ARSubsystems
Assembly: Unity.XR.ARSubsystems.dll
Syntax
public abstract class XRBoundingBoxSubsystem.Provider : SubsystemProvider<XRBoundingBoxSubsystem>
Methods
GetChanges(XRBoundingBox, Allocator)
Gets a TrackableChanges<T> struct containing any changes to detected bounding boxes since the last
time you called this method. You are responsible to Dispose() the returned
TrackableChanges
instance.
Declaration
public abstract TrackableChanges<XRBoundingBox> GetChanges(XRBoundingBox defaultXRBoundingBox, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
XRBoundingBox | defaultXRBoundingBox | The default bounding box. You should use this to initialize the returned TrackableChanges<T> instance by passing it to the constructor TrackableChanges(int, int, int, Allocator, T). |
Allocator | allocator | An |
Returns
Type | Description |
---|---|
TrackableChanges<XRBoundingBox> | The changes to bounding boxes since the last call to this method. |