I have scene where located 4 cubes and button over them, but that button is hidden at start and appears only when some event has happened, but when i click this button, objects that are behind button are also clicked. How can i avoid that? And question refered to previous one - can I somehow make objects that belong to specified layer not interactable, so player can’t click them?
Cube’s clicks are catched by default method in MonoBehaviour -
Clicks on button are handled by method in the Inventor “On Click()” where i choose what to do when button is clicked.
Here’s how my scene looks