0 votes

I have a RichTextLabel which overlaps a TextureButton. The button has a different texture for when its pressed, however I can not press the button with the text overlapping it.

Example

Is there a way to disable focus/selection of the text so that the button still works behind it? I need the text to not be part of the graphic so I cant just add it to the texture.

I'm still learning how to use godot, so maybe there's something obvious I'm overlooking.

in Engine by (21 points)

I eventually figured out that Godot considers Control nodes "visible" to mouse input and they naturally block anything overlapping them. (I guess bc they're supposed to be "controlling" stuff, even though we often use them for other reasons bc they work in containers.) When you make a control node, you always have to go to Mouse -> Filter -> Ignore if it's anywhere near anything.

1 Answer

+1 vote
Best answer

Select the RichTextLabel, go to Mouse and set Filter to Ignore.

by (1,259 points)
selected by

Thats perfect, thanks a lot!

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.