This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+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 (56 points)
retagged by

2 Answers

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 (236 points)
0 votes

What blue box are you talking about? Control nodes use different position coordinates than 2D nodes... but I need more detailed information than your question gives to answer better. Still, I asked a similar question and the answer may help you if you need to line those coordinates up.

by (123 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 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.