Quantcast
Viewing all articles
Browse latest Browse all 4

touch.tapCount

Hi, I'm trying to get a double tap on a GUI on the iPhone, what I want is a single tap to zoom in and a double tap to change the view, but using the below code it always print out "single tap" before going to "double tap" any help would be great. function Update(){ for (var touch : Touch in Input.touches){ if (gui03.HitTest (touch.position)){ if(touch.tapCount == 2){ print("double tap"); return; }else if(touch.tapCount == 1){ print("single tap"); } } } }

Viewing all articles
Browse latest Browse all 4

Trending Articles



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