// Prints the touch position when a screen touch has started varevent = script.createEvent("TouchStartEvent"); event.bind(function(eventData) { vartouchedPos = eventData.getTouchPosition(); print("touch started at " + touchedPos.x + " " + touchedPos.y); });
Returns the normalized 2D screen position of the users touch.
The normalized coordinates range from ([0-1], [0-1]), (0,0) being top-left and (1,1) being bottom-right.
Triggered when a touch event starts.
Example