Class ARRaycast
Represents a raycast that updates automatically.
Inheritance
ARRaycast
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.ARFoundation
Assembly: solution.dll
Syntax
[DefaultExecutionOrder(-2147483646)]
[DisallowMultipleComponent]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.ARRaycast.html")]
public sealed class ARRaycast : ARTrackable<XRRaycast, ARRaycast>
Remarks
Generated by the ARRaycastManager. Create a raycast with AddRaycast(Vector2, float).
Properties
Name | Description |
---|---|
distance | The distance, in meters, between the raycast's origin and intersection point. |
nativePtr | Get a native pointer associated with this raycast. |
plane | The ARPlane hit by the raycast, or |
Methods
Name | Description |
---|---|
OnAfterSetSessionRelativeData() | Marks this raycast as updated, causing the updated event to be invoked during the Update callback. |
Events
Name | Description |
---|---|
updated | Invoked whenever this raycast is updated. The event is fired during this |