+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

asked Jun 14, 2019 in Engine by mustafamax (32 points)

1 Answer

+2 votes
Best answer

Use move_child:

move_child($Button1, 1) # move the first button to the second position
answered Jun 14, 2019 by Dlean Jeans (3,895 points)
selected Jun 14, 2019 by mustafamax

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.