Class MagicLeapRaycastSubsystem
The Magic Leap implementation of the XRRaycastSubsystem
. Do not create this directly.
Use XRRaycastSubsystemDescriptor.Create()
instead.
Inheritance
UnityEngine.XR.ARSubsystems.TrackingSubsystem<XRRaycast, XRRaycastSubsystem, XRRaycastSubsystemDescriptor, XRRaycastSubsystem.Provider>
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)
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 |