Click on buttons underneath a ColorRect

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 358JH33E

I am working on a menu scene with a series of button nodes. Recently, I have decided that I would put a color overlay over the scene, so now there is a big, semi-transparent ColorRect placed above every other visual.

This is where I am running into problems. Because the ColorRect is on the top-most layer, any attempt to click on the buttons underneath fails; the game thinks I am clicking on the Rect instead.

Is there a property in ColorRect that I can change to make sure I can “click through” it? Please do not recommend a different method for color overlays, I am just messing around in the engine and curious if buttons can be clicked underneath a ColorRect. Thank you!

:bust_in_silhouette: Reply From: Gluon

Yes in the inspector there is a section called “mouse”. On the colourrect change this too filter ignore. You can then mouse click on something underneath the colourrect

Worked perfectly. Thanks a lot!

358JH33E | 2021-12-27 17:32

You are welcome

Gluon | 2021-12-27 17:48

1 Like