docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MagicLeapPlaneSubsystem

    The Magic Leap implementation of the XRPlaneSubsystem. Do not create this directly. Use MagicLeapPlaneSubsystemDescriptor.Create() instead.

    Inheritance
    object
    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
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 trackableId.

    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 trackableId cannot be found.

    See Also
    PlaneBoundaryCollection

    Implements

    UnityEngine.ISubsystem
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)