I made a simple infinite game.
I've got a CanvasLayer that has the background on it.
I'm trying to close off the game on either side so that the player can't escape the screen.
My thought was putting a StaticBody2D as a child of the CanvasLayer and then attaching a CollisionShape2D.
However the collision shape doesn't stay glued to the CanvasLayer, instead it just moves normally with the camera.