I'm making a top-down, Rimworld style colony builder and want to draw a selection rectangle. I can draw it on a UI CanvasItem but I don't know how to get the world position in relation to my moving and zooming camera.
I've tried drawing it straight to a Node2D in the world hierarchy and that works fine, but when I zoom in and out the line widths aren't constant.