Version: 2018.4
public static bool RectangleContainsScreenPoint (RectTransform rect, Vector2 screenPoint, Camera cam);

パラメーター

rectテストする RectTransform。
screenPointテストするスクリーンポイント
camテストが実行されるカメラ。(オプション)

戻り値

bool ポイントが矩形内にあれば True を返します。

説明

RectTransform は指定されたカメラから見たスクリーンポイントを含むか。