I have tried many times. It just not works at all. With the same shape, if I use a PolygonCollider2D, everything works fine. And if I replace PolygonCollider2D to a CompositeCollider2D composited by several BoxCollider2D, it does not work at all with the same code. I don’t know why.
Oh, I got the point. It is related to Geometry type. In default, The GeometryType of CompositeCollider2D is outlines. it is made by edges. And OverlapPoint will always return false for edges…