Touch position is off screen.

I have this code:

void Start () {
		Control = GameObject.FindGameObjectWithTag ("TouchControl");
	}

	void Update () {
		
		if (Input.touchCount > 0) {
			Control.transform.position = Input.GetTouch (0).position;
			Debug.Log (Input.GetTouch (0).position);
		}
	}

I want the Control Game Object to be moved wherever i touch on the screen, but it keeps going far off… Thanks for the help!

The touch position is likely in screen space. You’ll want to convert it to world space using Camera.ScreenToWorldPoint(Vector3), so:

         if (Input.touchCount > 0) {
             Control.transform.position = Camera.main.ScreenToWorldPoint(Input.GetTouch (0).position);
             Debug.Log (Camera.main.ScreenToWorldPoint(Input.GetTouch (0).position));
         }