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.

Try googling your title with unity. This has been asked before believe it or not.

1 Answer

1

Super easy way :

if(Input.GetMouseButton(0) && guiTexture.HitTest(Input.mousePosition))

{

   // load your level

}