Re: Menu touch command

Hey,

I have managed to get my game fully functioning on my Xperia X10. But have come across a brick wall in relation to my menu system.

Can anyone suggest the correct coding for click on touch is it Input.touch.1 or is it something completely different?

Thanks

Dameeda

Can anyone shed some light pls?

This is what I’ve been using:

Vector2 touchPosition = Vector2.zero;
if (Input.touchCount > 0)
{
	Touch firstTouch = Input.GetTouch(0);
	if(firstTouch.phase == TouchPhase.Began)
	{
		touchPosition = new Vector2(firstTouch.position.x, Screen.height - firstTouch.position.y); // convert to graphics coordinates
	}
}

Thanks BuzzJive I´ll give that a try! :smile: