How to keep image/button centered and scaled correctly (I know next to nothing about godot)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Angry_Fool

How can I keep a button or image scaled correctly on the screen when I’m adjusting window size. I know very little about godot so a more detailed explanation on it would be nice

:bust_in_silhouette: Reply From: USBashka

It depends of your interface structure, but I think you need to enable Expand in size flags in the Inspector tab for scaling and center anchors in Layout in the top menu of 2D viewport.

Also, for TextureRect there is a scaling and stretching properties that will help you to choose how image will be scaled.

:bust_in_silhouette: Reply From: the_maven

Just Read The Fine Manual: