I occasionally have the problem that while the player is interacting with the in-game overlay, the clicks and touches also reach the game world and interact with that gameworld.
How can I avoid this? Can anyone point me into a direction in which I can check whether I’m currently touching the interface?
I did, but if you don’t know what to look for it’s pretty difficult to find something this specific. For instance, the fact that this function has ‘pointer’ in the name is confusing in the context of a game for mobile touch screens.