Background swallows input

Godot Version

v4.2.2.stable.official [15073afe3]

Question

I have added camera movement via script to my Camera2D. After adding the ParallaxBackground the camera now doesn’t react to my input. If I hide the background it works again.

How can I debug something like this in Godot?
My first assumption is that the background eats up the input event because it is a canvas layer but I don’t see why it would do that.

My camera uses _unhandled_input to capture mouse clicks.

I think it’s your ColorRect. Turn mouse_filter to Ignore and see if that helps.

1 Like

I would have never thought of that. Thanks.
Any way to debug this? I imagine this could become a huge hassle if I have 200 nodes for example.

Thankfully yes, I just recently learnt about the Misc tab in the Debugger which might be a literal game changer in some scenarios :slight_smile:

2 Likes