- Home /
Ignoring touch input whith overlayed UI
Hi, i am currently developing an app and struggeling with UI and touch controls. The Problem: I have a play area where Objects are placed as sprites. I can click on them and interact with them. I can pinch and zoom and everything works fine. But now i am introducing Overlay Menus in order to open a Menu to edit properties of the objects in game. But i can still interact with the gameobjects behind the menu (panel) an buttons. I want to disable all touch controls for the game on the menu screen. This also applies for a Constant overlay ui with some game options.
Is there an easy way to do this? Otherwise i would write a work around. I did with the main overlay. The workaround is: I have defined a play area as a Rect and in the function the Touch is processed it checks weather the touch is on this Rect but this method is kind of klunky and bodged.
Just wanted to know if there is a built in Unity 2d function i miss.
Thx!
Your answer
![](https://koobas.hobune.stream/wayback/20220612225853im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Touch input problem 1 Answer
Pressing two on-screen buttons at the same time, with the same touch - Android Unity Event-Triggers 0 Answers
Buttons on mobile activating OnHighlight Animation without touching them. 0 Answers
IsPointerOverGameObject not working with TouchPhase.Ended 0 Answers
How to make the button respond to touch and hold feature? 5 Answers