Mobile Touch Events Without Update()

Ive set up a couple of scripts for my mobile project which check the location/time of a touch in update. Basically just add an if(input.gettouch…) statement to begin and add the code afterwards. I think this wastes cpu time. Is their a way to use a touch similar to ‘void onmousedown()’ ?

If you don’t know for sure you may be wasting time chasing ghosts. Use the profiler to figure out if it actually is where time is spent and if it is worth spending time optimising it. Generally simple if statements are very quick unless if they include some complex divisions or calling expensive methods. Since Input just returns the state of a bool I assume it is very fast but again I would profile it to know for sure.

I have checked, mouse events also work for touch, My mistake.

Mouse events works but it is not recommended for touch devices, which probably means that it may not always work as expected now or in the future.