RectTransformUtilityを使ってスクリーン座標をRectTransform上ののローカル座標やワールド座標に変換する方法です。 スクリーン座標をRectTransform上のUIのローカル座標に変換する スクリーン座標をRectTransform平面上のワールド座標に変換する ワールド座標をスクリーン座標に変換 参考 Unity2018.3.1 スクリーン座標をRectTransform上のUIのローカル座標に変換する スクリーン座標をUIのローカル座標に変換するにはRectTransformUtility.ScreenPointToLocalPointInRectangleを使います。 これは、スクリーン座標を引数に与えたRectTransform平面上の点に変換します。 using UnityEngine; using UnityEngine.UI; [RequireC
![【Unity】【uGUI】RectTransformUtilityでスクリーン座標をUIのローカル座標やワールド座標に変換する - LIGHT11](https://cdn-ak-scissors.b.st-hatena.com/image/square/fe1cf4dfa5d97e3bd6553bc408d36d4068aaafcc/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fh%2Fhalya_11%2F20190206%2F20190206234650.gif)