top of page

タッチされた座標表示

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