Signal mouse_entered() doesn't works if in the main scene has ColorRect node. Needs explanation.

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

So my root nodes should look like this:
Main Scene

But the map nodes and all the childern doesn’t works. It only works if I hide the background color. Like this:
BackgroundColor nodes needs to be hide

If I run with the BackgroundColor nodes hided. It works perfectly. Like this:
Game Run perfectly

But if I run with the node not hided. The hover mouse queue_free() on the godot icon doesn’t work. Like this:

This is the image of the code of that child and the inspector:

Oh yeah the function for deactivating input_pickable. Only use in these function:

English is not my mother tounges. I am sorry I can’t explained it with words.

:bust_in_silhouette: Reply From: BoxyLlama

This is likely due to the mouse_filter of the ColorRect being set to stop. Select the ColorRect, in the inspector expand the Mouse category. Make sure the Filter is set to ignore unless the ColorRect needs to detect the mouse, then pass.

It works!! Thank you for the explanation.

molesallegiance | 2022-09-29 19:27