Godot Version
4.6.1.stable, Linux X11
Question
Is an Area2D, when being a child of a Window, supposed to not register mouse_entered events or is this a bug or am I doing something wrong?
When starting this and hovering the mouse over the displayed godot-icon, no mouse entered outputs are printed.
Steps to reproduce
- Create a new project in
CompatibilityorForward+mode. - Add a
Node2Droot node. - Add a
Windowchild to theNode2D. - Add an
Area2Dchild to theWindowand attach a new script to it. - (Optionally add a
Sprite2Dchild to theArea2Dand drag theres://icon.svgon it. Just to see where the area is.) - Add a
CollisionShape2Dchild to theArea2D. - Set the
CollisionShape2D’s shape toRectangleShape2Dand resize it to your liking. - Connect the
Area2D’smouse_entered()signal to theArea2D’s script. (Not sure if that’s supposed to be required. OverwritingCollisionObject2D’s_mouse_enter()yields the same result for me.) - Print something inside it, to see whether the event got executed.
Object Picking is enabled (by default, I think), if that matters. I did not change any settings, as far as I’m aware.
Thanks in advance!
Feel free to ask for more specific information or any clarifications.


