+1 vote

I am trying to make alignments for a UI, but the typical operations are not working like I am intending and I am unsure why. For example, when I do the "center" option from a control node's layout option, the node doesn't center in the Editor's blue box, it goes up someplace beyond the blue box for some reason. I have tried resetting the margins, anchors and rect properties of the node in the inspector but the same thing still happens, all the resetting does is move the node's top left corner to the top left corner of the blue box. The node's size is small and can fit within the blue box easily, I am not sure why the layout options are not working properly. Is there a property I am not considering or something else I can do to fix it? I think this has something to do with the fact that the node's crosshair (orange) is at it's top left corner rather than it's center but I don't know how to change that.

Godot version v3.3.4
in Engine by (52 points)
retagged by

1 Answer

0 votes

Ok, I have had this problem in the past. Try using Control nodes if you are just using a basic Node2D or something!

by (193 points)
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.