How to resize a TextureFrame ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Lloydangifer
:warning: Old Version Published before Godot 3 was released.

I try to display some image in a gui and i use a textureframe. After setting the texture via a script, the image show in real size and set_size() doesn’t seem to work for resizing it.

Edit: i want to make the image smaller than its real size

:bust_in_silhouette: Reply From: YeOldeDM

TextureFrames have their Expand set to off by default.
Try using set_expand(true) after setting the texture.

Thanks but i forgot to mention that i want the image to be smaller not bigger than its real size.

Lloydangifer | 2017-02-10 09:46