Class MagicLeapPlaneSubsystem | Magic Leap XR Plugin | 6.0.0
docs.unity3d.com
    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
    UnityEngine.XR.ARSubsystems.TrackingSubsystem<BoundedPlane, XRPlaneSubsystem, XRPlaneSubsystemDescriptor, XRPlaneSubsystem.Provider>
    XRPlaneSubsystem
    MagicLeapPlaneSubsystem
    Inherited Members
    UnityEngine.XR.ARSubsystems.XRPlaneSubsystem.GetChanges(Unity.Collections.Allocator)
    UnityEngine.XR.ARSubsystems.XRPlaneSubsystem.GetBoundary(UnityEngine.XR.ARSubsystems.TrackableId, Unity.Collections.Allocator, Unity.Collections.NativeArray<UnityEngine.Vector2>)
    UnityEngine.XR.ARSubsystems.XRPlaneSubsystem.CreateOrResizeNativeArrayIfNecessary<T>(System.Int32, Unity.Collections.Allocator, Unity.Collections.NativeArray<T>)
    XRPlaneSubsystem.requestedPlaneDetectionMode
    XRPlaneSubsystem.currentPlaneDetectionMode
    UnityEngine.XR.ARSubsystems.TrackingSubsystem<UnityEngine.XR.ARSubsystems.BoundedPlane, UnityEngine.XR.ARSubsystems.XRPlaneSubsystem, UnityEngine.XR.ARSubsystems.XRPlaneSubsystemDescriptor, UnityEngine.XR.ARSubsystems.XRPlaneSubsystem.Provider>.GetChanges(Unity.Collections.Allocator)
    Namespace: UnityEngine.XR.MagicLeap
    Syntax
    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 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 cannot be found.

    See Also
    PlaneBoundaryCollection
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023