RichTextLabel blocks TextureButton pressed effect

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

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.

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.

zeroanaphora | 2022-01-20 21:07

:bust_in_silhouette: Reply From: skysphr

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

Thats perfect, thanks a lot!

Spiderpiggie | 2021-09-09 16:05