If I have a game with several areas where you can interact with buttons and at a certain moment I want to make an overlay with a simple selection menu that is above all that, is there any quick and easy way to block all the buttons that are below this layer?
I have tried to put a large transparent button that covers the entire screen but it doesn’t work.
You can disable the interaction of buttons with events but you would have to go one by one manually, source of future problems.
I don’t contemplate moving the camera to one side because there are usually active elements but temporarily hidden.
Any idea? thanks!
Edit: I have seen different solutions before putting this post, but in my case the screen below has to be visible (including the buttons on that screen) so I can’t hide layers.
From your request i understand this
FOR EXAMPLE
You have lets say options button in top right
Mute sound button left from it
And idk change zoom button left from it
They should work
NOW you want to add some overlay that when you do something some window/box appear with something
I say add it on some new layer that is above other layers
BUT when that overlay is visible you want to block functionality of that zoom mute and options buttons
Where you do not want to hide them
So to their conditions you add condition
INVERTED layer is visible
And that layer is name of the layer on which overlay is
Your buttons are visible
Layer with overlay is visible
But buttons do not work (zoom mute options)
You only need to toggle visibility of that layer on which overlay is to make all that work as you describe