public static OverlapAreaNonAlloc ( Vector2 pointA, Vector2 pointB, Collider2D results, [ layerMask, [ minDepth, [ maxDepth ) : int | ||
pointA | Vector2 | One corner of the rectangle. |
pointB | Vector2 | Diagonally opposite corner of the rectangle. |
results | Collider2D | Array to receive results. |
layerMask | [ | Filter to check objects only on specified 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 | int |
Physics2D::OverlapAreaNonAlloc ( Vector2 pointA, Vector2 pointB, Collider2D results ) : int | |
Physics2D::OverlapAreaNonAlloc ( Vector2 pointA, Vector2 pointB, Collider2D results, int layerMask ) : int | |
Physics2D::OverlapAreaNonAlloc ( Vector2 pointA, Vector2 pointB, Collider2D results, int layerMask, float minDepth ) : int |