0 votes

I'm looking to have an anchoring something like the following image:
anchor_example
Where the blue box is a child of the red box (both control nodes). Preferably, they would both be able to be arbitrary sizes (and change size arbitrary) and still be stacked, the blue just above the red. Additionally, the blue will disappear and reappear without the red changing its appearance, so putting them both into another container is not ideal (unless I'm misunderstanding something about how to use that container).

Does the default anchoring system allow for this easily? Or will I need to add some code which checks the dimensions and positions them accordingly? (This would code would not be difficult, I just want to make sure I'm not missing a cleaner option if it already exists). Thank you!

in Engine by (107 points)

I'm not sure about what the anchoring system offers, but if I were you I'd rely on code ;)

Please log in or register to answer this question.

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.