Class XRPlaneSubsystem
Base class for plane subsystems.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public class XRPlaneSubsystem : TrackingSubsystem<BoundedPlane, XRPlaneSubsystem, XRPlaneSubsystemDescriptor, XRPlaneSubsystem.Provider>, ISubsystem
Remarks
This subsystem surfaces information regarding the detection of planes (that is, flat surfaces) in the physical environment. Implementations are typically found in other provider or platform-specific packages.
Constructors
Name | Description |
---|---|
XRPlaneSubsystem() | Constructs a plane subsystem. Do not invoke directly; call |
Properties
Name | Description |
---|---|
currentPlaneDetectionMode | Get the current PlaneDetectionMode in use by the provider. |
requestedPlaneDetectionMode | Get or set the requested PlaneDetectionMode, for example, to enable different modes of detection. |
Methods
Name | Description |
---|---|
CreateOrResizeNativeArrayIfNecessary<T>(int, Allocator, ref NativeArray<T>) | Creates or resizes the |
GetBoundary(TrackableId, Allocator, ref NativeArray<Vector2>) | Gets the boundary polygon describing the plane. |
GetChanges(Allocator) | Get the changes to planes (added, updated, and removed) since the last call to GetChanges(Allocator). |