Version: 2017.3
public bool OverlapPoint (Vector2 point);

Parámetros

point Un punto en el espacio del mundo.

Valor de retorno

bool Whether the point overlapped any of the Rigidbody2D colliders.

Descripción

Check if any of the Rigidbody2D colliders overlap a point in space.

Any EdgeCollider2D attached to the Rigidbody2D won't be checked for an overlapping point as they don't have any area therefore do not support this.