[Solved] How to hide all objects on a layer when hiding a layer?

How do I…

it is necessary that when the layer is hidden, all objects on it (buttons, switches) stop working

What is the expected result

when you hide a layer, the buttons stop working

What is the actual result

buttons can be clicked even if the layer is hidden

Add this condition to your button logic and invert it, so it will only run if the layer is visible.

Edit: whoops, don’t invert.

image

2 Likes