0 votes

Good afternoon. When you turn on full-screen mode, the Node Touch Screen Button does not save the position, there are ideas how to fix it without setting Stretch: Mode 2D / Viewport, Aspect:"...", this method is not suitable, since the quality of the jackal is worse than ever?
But at the same time, the camera in full-screen mode, buttons and other controls are set in the correct position perfectly.

Before
https://skr.sh/s6UEn0v1Q9c

After
https://skr.sh/s6UFBkCTRQh

Godot version 3.2.3 Stable
in Engine by (149 points)
edited by

1 Answer

+1 vote
Best answer

Sounds like you should be using anchors. The position is based off of the top left being (0,0), so it's only storing the distance they should be from there. You can use the anchors on Control elements to make it stick to different locations (like corners of the screen)
Here's some more info:
https://docs.godotengine.org/en/stable/tutorials/gui/size_and_anchors.html

by (612 points)
selected by

Yes, the nodes in the Label and anchored to the anchors help a lot)

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.