OnTouch function?

I am trying to port my game over to mobile and many of my scripts use OnMouseUp which just runs when an object is clicked, does anyone know a similar solution for touch? as in OnTouchUp or something?

There is an asset called Input.Touches on the asset store that handles pretty much every touch gesture you can think of, including OnTouchUp. It is well documented, and support from the developer is great.

I know this is not exactly what you were looking for, but it is worth every penny.

Hope this helped.

Use “Input.GetTouch(int index)” and for touch up and touch down use touch phases.

GetTouch Reference

TouchPhases Reference

The question is old, but I’m writing an answer for future viewers. There is no out of the box OnTouch as has been stated, but you can write OnTouch functionality rather simply using a resource like this: http://wiki.unity3d.com/index.php/OnMouseDown