Can't move camera while on a CanvasLayer

Godot Version

4.2.1

Question

I have encountered this problem, but I don’t understand why it is happening. When I try to add a shader to my game following these steps, I find that I can’t move my character’s camera. However, I am still able to use WASD to walk normally. Disabling visibility on the CanvasLayer fixes this issue, but it also removes the shader. Here is an overview of my project.

2 Likes

It is likely that the ColorRect captures the input.

  • CanvasLayer has layer = 1 and can receive input events before the nodes outside of the CanvasLayer
  • ColorRect has by default mouse_filter = Stop and captures mouse input events.

Please try to set mouse_filter = Ignore for the ColorRect.

1 Like

I think this’s the solution I’m looking for

Thanks!!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.