+1 vote

Like in question how can i dock my interface (like this photo https://prnt.sc/q1holm) to moving object? I asking because i see on youtube only tutorials with static objects

Edit: if someone know how to resize interface after minimalize or maximalize i would thank

in Engine by (76 points)

1 Answer

+2 votes
Best answer

Put that interface as child of that moving object? Or set its position to be the same as the object every frame, using a script. Also make sure that interface is within the same CanvasLayer (or none if the moving object isn't in one).

For resizing interface when window size changes, look for stretch modes in project settings. Also, make use of anchors, avoid setting static GUI sizes when possible. You may want to take a look at this doc https://docs.godotengine.org/en/3.1/tutorials/viewports/multiple_resolutions.html

by (29,090 points)
selected by
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.