Texture button overlap

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

Hey there

This project recreates the current problem I’m facing. When a TextureButton (or a TextureRect for that matter) in the level overlaps with the TextureRect in the GUI instance, the mouse_entered() signal doesn’t fire. If i increase the layer on the GUI scene, the mouse_entered() signal on the GUI TextureRect fires, but signals on the TextureButton don’t fire.

Any tips to workaround this would be appreciated.

:bust_in_silhouette: Reply From: Whom

I was able to fix it by resetting Layer for GUI (changed it to 1) and resetting Z Index for ItemContainer (changed it to 0) and changing Mouse → Filter setting to Ignore for these nodes:

Control
HBoxContainer
LeftArrowContainer
RightArrowContainer

I’ve learned that whenever you have a problem with catching mouse input, it’s usually fixable by changing the mouse filter setting.

Like a boss! All of the blessings upon you, and upon you all of the blessings!

anark10n | 2022-10-29 09:04