Class MagicLeapPlaneSubsystem
The Magic Leap implementation of the XRPlaneSubsystem
. Do not create this directly.
Use MagicLeapPlaneSubsystemDescriptor.Create()
instead.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.MagicLeap
Syntax
[Preserve]
[UsesLuminPrivilege("WorldReconstruction")]
public sealed class MagicLeapPlaneSubsystem : XRPlaneSubsystem
Methods
CreateProvider()
Declaration
protected override XRPlaneSubsystem.Provider CreateProvider()
Returns
Type | Description |
---|---|
XRPlaneSubsystem.Provider |
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 cannot be found. |