rect | The RectTransform to find a point inside. |
cam | The camera associated with the screens space position. |
screenPoint | Screen space position. |
localPoint | Point in local space of the rect transform. |
bool Returns true if the plane of the RectTransform is hit, regardless of whether the point is inside the rectangle.
Transform a screen space point to a position in the local space of a RectTransform that is on the plane of its rectangle.