RectTransformUtility.RectangleContainsScreenPoint

매뉴얼로 전환
public static bool RectangleContainsScreenPoint (RectTransform rect, Vector2 screenPoint, Camera cam);

파라미터

rectThe RectTransform to test with.
screenPointThe screen point to test.
camThe camera from which the test is performed from. (Optional)

반환

bool True if the point is inside the rectangle.

설명

Does the RectTransform contain the screen point as seen from the given camera?