Class MagicLeapPlaneSubsystem
The Magic Leap implementation of the XRPlaneSubsystem
. Do not create this directly.
Use MagicLeapPlaneSubsystemDescriptor.Create()
instead.
Inheritance
SubsystemWithProvider
SubsystemWithProvider<XRPlaneSubsystem, XRPlaneSubsystemDescriptor, XRPlaneSubsystem.Provider>
TrackingSubsystem<BoundedPlane, XRPlaneSubsystem, XRPlaneSubsystemDescriptor, XRPlaneSubsystem.Provider>
XRPlaneSubsystem
MagicLeapPlaneSubsystem
Implements
ISubsystem
Inherited Members
XRPlaneSubsystem.GetChanges(Allocator)
XRPlaneSubsystem.GetBoundary(TrackableId, Allocator, ref NativeArray<Vector2>)
XRPlaneSubsystem.requestedPlaneDetectionMode
XRPlaneSubsystem.currentPlaneDetectionMode
TrackingSubsystem<BoundedPlane, XRPlaneSubsystem, XRPlaneSubsystemDescriptor, XRPlaneSubsystem.Provider>.GetChanges(Allocator)
SubsystemWithProvider<XRPlaneSubsystem, XRPlaneSubsystemDescriptor, XRPlaneSubsystem.Provider>.subsystemDescriptor
SubsystemWithProvider.Start()
SubsystemWithProvider.Stop()
SubsystemWithProvider.Destroy()
SubsystemWithProvider.running
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 |
See Also
Implements
UnityEngine.ISubsystem