- Home /
Differentiating a tap from a swipe?
So I'm having a hard time with a level selection style similar to angry birds or other popular mobile games. My problem is that when I swipe over the grid of gui textures, it clicks on a whole bunch of them... How can I stop this so that you can swipe over these to turn the page.
Comment
Try googling your title with unity. This has been asked before believe it or not.
Answer by Kinnison · May 27, 2014 at 07:56 PM
Super easy way :
if(Input.GetMouseButton(0) && guiTexture.HitTest(Input.mousePosition))
{
// load your level
}
Your answer
Follow this Question
Related Questions
Single Tap Registered on Swipe (C#) 0 Answers
Detect whether a tap is a swipe up gesture or just a tap 0 Answers
Custom touch phase? 0 Answers