Trace touch position

how can I trace what a touch position is into a text box on screen?

I’m not sure what you mean by that. Do you want to get the screen coordinates of a touch and show them to the user?

yes, i am trying to archive that as well, i am using jCar and now want to be able when a user touches the scren to accelerate!

Thanks

You can get the touch using code like the following:-

var touchPos: Vector2;

function Update() {
   if (iPhoneInput.touchCount > 0) {
      touchPos = iPhoneInput.GetTouch(0).position;
   }
}

Then, you can display the touch position from the OnGUI function using GUI.Label:-

var labelRect: Rect; // Set this from the inspector.

function OnGUI() {
   GUI.Label(labelRect, "Touch: " + touchPos);
}