UnityEngine.Physics2D.OverlapPointAll C# (CSharp) Method

OverlapPointAll() public static method

Get a list of all colliders that overlap a point in space.

public static OverlapPointAll ( Vector2 point, [ layerMask, [ minDepth, [ maxDepth ) : Collider2D[]
point Vector2 A point in space.
layerMask [ Filter to check objects only on specific 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 Collider2D[]
        public static Collider2D[] OverlapPointAll(Vector2 point, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
        {
            return INTERNAL_CALL_OverlapPointAll(ref point, layerMask, minDepth, maxDepth);
        }

Same methods

Physics2D::OverlapPointAll ( Vector2 point ) : Collider2D[]
Physics2D::OverlapPointAll ( Vector2 point, int layerMask ) : Collider2D[]
Physics2D::OverlapPointAll ( Vector2 point, int layerMask, float minDepth ) : Collider2D[]
Physics2D