0 votes

The position in the preview does not match the position when I tested the scene.

I tried adjusting the margin and anchor of the buttons and labels to the position I desire but when I saved and tested the scene, it still remains the same.

Godot version latest
in Engine by (23 points)

What exactly do you mean by not matching? Margins and anchors set the relative positions of control nodes

An image of both would greatly help your case

I can relate this also happen to me when I'm creating a Line graph. Let say that the position of a node in editor is Vector2(999,999). If you play it it will be like Vector2(1200,1100) or some sort. What I do is I just subtract the position of node in editor versus the position of testing.

Any chance that you're looking at local coordinates? You can print the global_position to check if it is changing too.

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.