top of page

TOSHICHAN
Unityでスクリプト&簡単な実装サイト
タッチされた座標表示
if(Input.touchCount > 0)
{
foreach(Touch t in Input.touches)
{
if (t.phase != TouchPhase.Ended && t.phase != TouchPhase.Canceled)
{
Debug.Log("x=" + t.position.x + " y=" + t.position.y);
}
}
}
bottom of page