Look at the documentation for Input:
http://docs.unity3d.com/Documentation/ScriptReference/Input.GetTouch.html
The first example shows how you can record the position of the touch. Store that and use the result in your GUI code.
↧