RectangleContainsScreenPoint() public static method

public static RectangleContainsScreenPoint ( RectTransform rect, Vector2 screenPoint ) : bool
rect RectTransform
screenPoint Vector2
return bool
コード例 #1
0
 public static bool RectangleContainsScreenPoint(RectTransform rect, Vector2 screenPoint)
 {
     return(RectTransformUtility.RectangleContainsScreenPoint(rect, screenPoint, null));
 }
コード例 #2
0
 public static bool RectangleContainsScreenPoint(RectTransform rect, Vector2 screenPoint, Camera cam)
 {
     return(RectTransformUtility.RectangleContainsScreenPoint(rect, screenPoint, cam, Vector4.zero));
 }