RectangleContainsScreenPoint() public static method

public static RectangleContainsScreenPoint ( RectTransform rect, Vector2 screenPoint ) : bool
rect RectTransform
screenPoint Vector2
return bool
Exemplo n.º 1
0
 public static bool RectangleContainsScreenPoint(RectTransform rect, Vector2 screenPoint)
 {
     return(RectTransformUtility.RectangleContainsScreenPoint(rect, screenPoint, null));
 }
Exemplo n.º 2
0
 public static bool RectangleContainsScreenPoint(RectTransform rect, Vector2 screenPoint, Camera cam)
 {
     return(RectTransformUtility.RectangleContainsScreenPoint(rect, screenPoint, cam, Vector4.zero));
 }