Class XRRaycastSubsystem.Provider
An interface to be implemented by providers of this subsystem.
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public class XRRaycastSubsystem.Provider : SubsystemProvider<XRRaycastSubsystem>
Methods
Name | Description |
---|---|
Destroy() | Called when the subsystem is destroyed. Stop() will be called first if the subsystem is running. |
GetChanges(XRRaycast, Allocator) | Get the changes to raycasts (arrays of added, updated, and removed) since the last call to this method. |
Raycast(XRRaycastHit, Ray, TrackableType, Allocator) | Performs a raycast from an arbitrary ray against the types
specified by |
Raycast(XRRaycastHit, Vector2, TrackableType, Allocator) | Performs a raycast from the camera against the types
specified by |
RemoveRaycast(TrackableId) | Removes a raycast previously added with TryAddRaycast(Vector2, float, out XRRaycast) or TryAddRaycast(Ray, float, out XRRaycast) |
Start() | Called when the subsystem is started. Will not be called again until Stop(). |
Stop() | Called when the subsystem is stopped. Will not be called before Start(). |
TryAddRaycast(Ray, float, out XRRaycast) | Adds a new persistent raycast. Persistent raycasts should be updated automatically until this provider is stopped or destroyed or the raycast is removed with RemoveRaycast(TrackableId). |
TryAddRaycast(Vector2, float, out XRRaycast) | Adds a new persistent raycast. Persistent raycasts should be updated automatically until this provider is stopped or destroyed or the raycast is removed with RemoveRaycast(TrackableId). |