Godot Version
4.6
Question
Hello,
I am currently implementing a 2D HUD system in my 3D game.
The issue is that when I manage the 2D position of a “Label” node (for example) via GDScript the element is positioned relative to its parent (a Control node) using its top-left corner as the origin instead of its center. Consequently, I have to consistently offset the element by half of its dimensions or parents it to an empty node. And nothing happens when I define the pivot offset to vector2(0.5, O.5) in the inspector.
Do you know a way to set a 2D node’s transformation origin to its center rather than its top-left corner?
Thank you in advance for your answers and have a nice day.