0 votes

Only after some trying I figured out that in this order the PopupPanel appears at the spot where I left it in the editor window.
enter image description here
I would be glad to be pointed to a good read about those node hierarchies and what has to be the parent of whom to get the expected results.

in Engine by (31 points)

Popups draw relative to the anchor, when you reparent them, the position gets corrected but the anchor can mess up things a bit so you need to adjust it again (I wonder if this is a feature or a bug).

I guess a good tutorial is needed to explain those small details in the Control branch.

1 Answer

+3 votes
Best answer

PopupPanel is a toplevel control, meaning it is not effected by its parent position or scale, and is a child in hierarchy alone (it still gets removed if its parent is removed)

Control nodes have the function setastoplevel(true) or something for this.

by (124 points)
selected by

Thanks a ton for the clarification! I will keep the hierarchy in mind.

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.