How to add a background image in a viewport container that rescales when you resize the window.

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

So, there is a TextureRect that i have in a ViewportContainer that also contains a 2D Camera. All the other elements resize and relocate based on the window size and anchored to specific locations, but i couldn’t find how to make TextureRect rescale.

Changing to “Full Rect” in layout options of ViewportContainer doesn’t work.

See: https://forum.godotengine.org/130715/adjusting-background-to-window-size
This might answer your question

TheNormandyProject | 2023-02-24 02:40