how to upscale or downscale a GUI texture according to the screen resolution (keeping the texture's aspect ratio) ?

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

After reading the documentation on GUI, viewing many tutos on youtube and struggling with the editor, I still don’t manage to scale a GUI texture on top of a 3D game. I thought that a TextureRect node would be appropriate but what options should I use then? Or what is your solution?