+1 vote

You place three buttons in a Vbox container,
I want to change the position of each button using the code,
For example the number one button is number two and so on
enter image description here

in Engine by (46 points)

1 Answer

+2 votes
Best answer

Use move_child:

move_child($Button1, 1) # move the first button to the second position
by (4,101 points)
selected by

Thank you this is the perfect solution

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.