Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

ios touch - only once

$
0
0
Hi guys, I'm new to ios development and am trying to understand the touch input. The below code works but it's constantly updating resulting in printed word "Tapped" being printed in the console 10's of times at once. How can i have it run the code only once per tap? void FixedUpdate() { if (Input.touchCount > 0){ print("Tapped"); } } Cheers

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>