+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!



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,597 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 Frequently asked questions and 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 [email protected] with your username.