0 votes

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!

Godot version 3.4.2.stable
in Engine by (24 points)

1 Answer

+2 votes
Best answer

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

by (1,417 points)
selected by

Worked perfectly. Thanks a lot!

You are welcome

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.