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.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
[Preserve]
[UsesLuminPrivilege("WorldReconstruction")]
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 |