How to change size texturebutton?

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

rect_size gives an error message “Nonexistent function”

:bust_in_silhouette: Reply From: Jowan-Spooner

Sounds like you tried something like this:

$button.rect_size(Vector2(100, 200))

Setting variables inside godot (since 3) nearly always works by simply assigning them to the new value like this:

$button.rect_size = Vector2(100,200)

Hope it solves your problem. If not, please give some further information like: your code, the original error message, etc.

Thanks, Jowan

Yes, I tried this)
thanks!

WellStacked | 2019-05-23 20:20