Godot - Changing the Size of a Button
This code example shows how to change the size of a Button node using GDScript.
You can change the size of a Button node using the `size` property.
If you set the `size` property to be smaller than the width of the Button text, the Button node will be maintained at the width of the text.
# Create a Button node
var button = Button.new()
add_child(button)
button.text = "Button"
# Change the size of the Button node
button.size = Vector2(200, 200)