minDepth | Only include objects with a Z coordinate (depth) greater than this value. |
maxDepth | Only include objects with a Z coordinate (depth) less than this value. |
start | The start point of the line in world space. |
end | The end point of the line in world space. |
results | Returned array of objects that intersect the line. |
layerMask | Filter to detect Colliders only on certain layers. |
Casts a line against colliders in the scene.