Class MagicLeapRaycastSubsystem
The Magic Leap implementation of the XRRaycastSubsystem. Do not create this directly.
Use XRRaycastSubsystemDescriptor.Create() instead.
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 Provider CreateProvider()
Returns
| Type | Description |
|---|---|
| Provider |