Block UnityGUI Hit

Hi,

I am using the Unity GUI in my project, and it works fairly well.

However, when I tap a button (this is iOS), the tap is still sent to my app, and subsequently the rest of my app reacts. For my type of project this is not desired behavior.

So, basically, how can I block a GUI hit being sent to the rest of my app?

IIRC this is one of those headache moments where you have to write manual tests to see if the tap happened within any GUI areas anywhere you want to use Input. There are probably tons of threads about this problem, with proposed workarounds. Here’s one for example.