Method AddRaycast
AddRaycast(Vector2, float)
Creates an ARRaycast that updates automatically. ARRaycasts will continue to update until you remove them with RemoveRaycast(ARRaycast) or disable this component.
Declaration
public ARRaycast AddRaycast(Vector2 screenPoint, float estimatedDistance)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | screenPoint | A point on the screen, in pixels. |
float | estimatedDistance | The estimated distance to the intersection point. This can be used to determine a potential intersection before the environment has been fully mapped. |
Returns
Type | Description |
---|---|
ARRaycast | A new ARRaycast if successful; otherwise |