Godot Version
v4.3.stable.official [77dcf97d8]
Question
I’m trying to figure out how I might go about getting a control to scale to fit the viewport.
Now, I’m not talking about using containers to automatically lay out my component and I don’t want to just anchor it to one of the edges. I’m trying to implement a control someone else designed that’s supposed to be an overlay for the game window that emulates a Playstation controller. The buttons need to stay right where they are relative to the control’s bounding rectangle - I just need the entire thing to scale up or down to match the screen’s size and stay centered in case the aspect of the control is different from the window size.
Is there a way to do this? As far as I can tell, Godot’s controls do not scale relative to the viewport.
This is meant to be drawn over a 3D game.