Quantcast
Channel: Latest Questions by guto-thomas
Viewing all articles
Browse latest Browse all 84

Touch phase changes to Ended before I take my finger off the screen (Cardboard)

$
0
0
Hey everyone, I'm trying to create a system to fire an event when you hold your finger on the screen for more than 1 second. Should be pretty simple except the phase of the current touch is not correct. Even if I press the screen and rest my finger there, I get 3 phases changing frame after frame. It goes from Began to Stationary and Ended even though my finger is still there, pressing the screen. I ran adb logcat and when I take my finger off the screen I can see an event being sent from the OS, but Unity is not getting it. I tried Input.touches[0].phase and Input.GetMouseButtonDown(0) with no success. Obs: I'm using Cardboard SDK, just to mention it. Cheers!

Viewing all articles
Browse latest Browse all 84

Trending Articles



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