Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

No Touch if Button touched

$
0
0
Hi,

atm my game detects touches and fires something on every touch.
Now I tried the GUI-Components and when I touch the Button it gets fired BUT the touch is detected as well and my "cannon" fires.

What's the best method to prevent this? Can I detect touches on a specific element and do Buttons "swallow" touches if the lay above?

Thx for the help.

Viewing all articles
Browse latest Browse all 10823

Latest Images

Trending Articles

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