When I switch between two scenes, the button from the not-rendered scene, which is not visible on the screen, and not available in the inspector is still clickable.
How to reproduce:
Press the green button. When the scene switch happens, press again in the location when the green button was before. You will see the message in console that click event happened.
Please advise how to avoid that behavior and make not rendered buttons inactive = not clickable?