Canvas offset in editor

Godot Version

4.4.1.stable_mono

Question

I have a HUD in my App (not really a game still) and it does work in-game.
But in editor the the canvas layer which is child of the root and parent of the HUD is with it’s top-left corner at cordinates (0|0)
while the camera and rest of my app is with it’s center at (0|0).

Can I have them at the same place?
(without moving them by hand which would be possible but un-programmer-like and could change when their size for whatever reason changes)

When I don’t use a canvas in between my control nodes won’t take the maximum space but only the minimum I’ve set.
I also tried moving the root/camera with a tool-script… Didn’t move correctly.

[1]Picture shows just a Root (Node) with childs: a white Control at minimum-size and a red-transparent canvas-layer→control

I have a Reposetory were I test that. (Also some older stuff in there from when I startet Godot)


  1. Footnotes ↩︎

You can set the Camera2D’s anchor_mode to “Fixed Top Left”