Class XRRaycastSubsystem
Base class for a raycast subsystem.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public class XRRaycastSubsystem : TrackingSubsystem<XRRaycast, XRRaycastSubsystem, XRRaycastSubsystemDescriptor, XRRaycastSubsystem.Provider>, ISubsystem
Remarks
This abstract class should be implemented by an XR provider and instantiated using the SubsystemManager
to enumerate the available XRRaycastSubsystemDescriptors.
Constructors
Name | Description |
---|---|
XRRaycastSubsystem() | Constructor. Do not invoke directly; use the |
Methods
Name | Description |
---|---|
GetChanges(Allocator) | Get the changes to the tracked raycasts (arrays of added, updated and removed) since the last call to this method. |
Raycast(Ray, TrackableType, Allocator) | Casts |
Raycast(Vector2, TrackableType, Allocator) | Casts a ray originating from |
RemoveRaycast(TrackableId) | Removes an existing raycast by its TrackableId. |
TryAddRaycast(Ray, float, out XRRaycast) | Attempts to add a new persistent raycast. The raycast will be updated automatically until this subsystem is stopped or destroyed, or the the raycast is removed with RemoveRaycast(TrackableId). |
TryAddRaycast(Vector2, float, out XRRaycast) | Attempts to add a new persistent raycast. The raycast will be updated automatically until this subsystem is stopped or destroyed, or the the raycast is removed with RemoveRaycast(TrackableId). |