+1 vote

Whenever I move the button somewhere and test the menu or disable then re-enable visibility of the button, it moves to the top left corner of the VBoxContaine.

Any advice would be appreciated!

https://puu.sh/A2l5T/fb9a33cfea.png

https://puu.sh/A2l6Q/cb17263842.png

in Engine by (29 points)

1 Answer

0 votes
Best answer

A VBoxContainer is designed to automatically rearrange nodes. Same goes for HBoxContainer, MarginContainer, CenterContainer, and GridContainer.

If you don't want the container to automatically position its children, use a plain ol' Container. You can still anchor the children where you want them relative to the parent Container.

by (1,516 points)
selected by

Ah thanks for the advice!

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.

Categories