Draws a ray with a given length.
Ray
ray
float
length
Draw.Ray(Camera.main.ScreenPointToRay(Vector3.zero), 10);
Color
color
Draws a ray starting at a point and going in the given direction.
float3
origin
direction
The ray will end at origin + direction.
Draw.Ray(Vector3.zero, Vector3.up);