_on_area_2d_mouse_entered() and _on_area_2d_input_event() not working

Godot Version



I making a borderless image viewer and im using an Area2D node to check f the mouse is on the window and if the mouse is dragged it will move the window but it won’t detect anything. Any ideas?

There can be many reasons. A few that come to mind:

  • The Area2D overlaps with Control nodes and the Control nodes handle the mouse events
  • physics picking is disabled

Picking is enabled both through code and in the node view.
What do you mean by it overlaping?

it seems like the area2d wont detect anything if the window is not focused