Class MagicLeapRaycastSubsystem
The Magic Leap implementation of the XRRaycastSubsystem
. Do not create this directly.
Use XRRaycastSubsystemDescriptor.Create()
instead.
Inheritance
SubsystemWithProvider
SubsystemWithProvider<XRRaycastSubsystem, XRRaycastSubsystemDescriptor, XRRaycastSubsystem.Provider>
TrackingSubsystem<XRRaycast, XRRaycastSubsystem, XRRaycastSubsystemDescriptor, XRRaycastSubsystem.Provider>
XRRaycastSubsystem
MagicLeapRaycastSubsystem
Implements
ISubsystem
Inherited Members
XRRaycastSubsystem.GetChanges(Allocator)
XRRaycastSubsystem.RemoveRaycast(TrackableId)
XRRaycastSubsystem.Raycast(Ray, TrackableType, Allocator)
XRRaycastSubsystem.Raycast(Vector2, TrackableType, Allocator)
TrackingSubsystem<XRRaycast, XRRaycastSubsystem, XRRaycastSubsystemDescriptor, XRRaycastSubsystem.Provider>.GetChanges(Allocator)
SubsystemWithProvider<XRRaycastSubsystem, XRRaycastSubsystemDescriptor, XRRaycastSubsystem.Provider>.subsystemDescriptor
SubsystemWithProvider.Start()
SubsystemWithProvider.Stop()
SubsystemWithProvider.Destroy()
SubsystemWithProvider.running
Namespace: UnityEngine.XR.MagicLeap
Assembly: UnityEngine.XR.MagicLeap.dll
Syntax
[Preserve]
public sealed class MagicLeapRaycastSubsystem : XRRaycastSubsystem, ISubsystem
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. |
Implements
UnityEngine.ISubsystem