Class MagicLeapPlaneSubsystem
The Magic Leap implementation of the XRPlaneSubsystem. Do not create this directly.
Use MagicLeapPlaneSubsystemDescriptor.Create() instead.
Inheritance
TrackingSubsystem<BoundedPlane, XRPlaneSubsystem, XRPlaneSubsystemDescriptor, XRPlaneSubsystem.Provider>
MagicLeapPlaneSubsystem
Implements
Inherited Members
XRPlaneSubsystem.currentPlaneDetectionMode
SubsystemWithProvider<XRPlaneSubsystem, XRPlaneSubsystemDescriptor, XRPlaneSubsystem.Provider>.subsystemDescriptor
Namespace: UnityEngine.XR.MagicLeap
Assembly: UnityEngine.XR.MagicLeap.dll
Syntax
[Preserve]
public sealed class MagicLeapPlaneSubsystem : XRPlaneSubsystem, ISubsystem
Methods
GetAllBoundariesForPlane(TrackableId)
Gets a collection of plane boundaries associated with the plane with trackableId.
Declaration
public PlaneBoundaryCollection GetAllBoundariesForPlane(TrackableId trackableId)
Parameters
| Type | Name | Description |
|---|---|---|
| TrackableId | trackableId |
Returns
| Type | Description |
|---|---|
| PlaneBoundaryCollection | A PlaneBoundaryCollection containing all the boundaries associated
with the plane with |
Remarks
The base class's GetBoundary method provides access to a single convex boundary.
However, Magic Leap can produce multiple non-convex boundaries for each plane. This method
provides access to those boundaries.
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Thrown if the plane with the given |