How to click a button ONLY when it's not covered?

Godot Version

Godot 4.3.stable

Question

I have a button that will sometimes get covered by other sprites. I don’t want you to be able to click on it while it’s covered. But you can. How do I fix this?

You could overlay a transparent ColorRect control over the sprite. Then set it’s mouse filter property to stop.

1 Like