Class MagicLeapRaycastSubsystem | Magic Leap XR Plugin | 6.0.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class MagicLeapRaycastSubsystem

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

    Inheritance
    Object
    UnityEngine.XR.ARSubsystems.TrackingSubsystem<XRRaycast, XRRaycastSubsystem, XRRaycastSubsystemDescriptor, XRRaycastSubsystem.Provider>
    XRRaycastSubsystem
    MagicLeapRaycastSubsystem
    Inherited Members
    UnityEngine.XR.ARSubsystems.XRRaycastSubsystem.GetChanges(Unity.Collections.Allocator)
    UnityEngine.XR.ARSubsystems.XRRaycastSubsystem.TryAddRaycast(UnityEngine.Vector2, System.Single, UnityEngine.XR.ARSubsystems.XRRaycast)
    UnityEngine.XR.ARSubsystems.XRRaycastSubsystem.TryAddRaycast(UnityEngine.Ray, System.Single, UnityEngine.XR.ARSubsystems.XRRaycast)
    XRRaycastSubsystem.RemoveRaycast(TrackableId)
    UnityEngine.XR.ARSubsystems.XRRaycastSubsystem.Raycast(UnityEngine.Ray, UnityEngine.XR.ARSubsystems.TrackableType, Unity.Collections.Allocator)
    UnityEngine.XR.ARSubsystems.XRRaycastSubsystem.Raycast(UnityEngine.Vector2, UnityEngine.XR.ARSubsystems.TrackableType, Unity.Collections.Allocator)
    UnityEngine.XR.ARSubsystems.TrackingSubsystem<UnityEngine.XR.ARSubsystems.XRRaycast, UnityEngine.XR.ARSubsystems.XRRaycastSubsystem, UnityEngine.XR.ARSubsystems.XRRaycastSubsystemDescriptor, UnityEngine.XR.ARSubsystems.XRRaycastSubsystem.Provider>.GetChanges(Unity.Collections.Allocator)
    Namespace: UnityEngine.XR.MagicLeap
    Syntax
    public sealed class MagicLeapRaycastSubsystem : XRRaycastSubsystem

    Methods

    AsyncRaycast(RaycastQuery)

    Asynchronously casts a ray. Use the returned AsyncRaycastResult to check for completion and retrieve the raycast hit results.

    Declaration
    public AsyncRaycastResult AsyncRaycast(RaycastQuery query)
    Parameters
    Type Name Description
    RaycastQuery query

    The input query for the raycast job.

    Returns
    Type Description
    AsyncRaycastResult

    An AsyncRaycastResult which can be used to check for completion and retrieve the raycast result.

    CreateProvider()

    Declaration
    protected override XRRaycastSubsystem.Provider CreateProvider()
    Returns
    Type Description
    XRRaycastSubsystem.Provider
    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