public static Linecast ( Vector2 start, Vector2 end, [ layerMask, [ minDepth, [ maxDepth ) : RaycastHit2D | ||
start | Vector2 | The start point of the line in world space. |
end | Vector2 | The end point of the line in world space. |
layerMask | [ | Filter to detect Colliders only on certain layers. |
minDepth | [ | Only include objects with a Z coordinate (depth) greater than or equal to this value. |
maxDepth | [ | Only include objects with a Z coordinate (depth) less than or equal to this value. |
return | RaycastHit2D |