+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

asked Nov 24, 2019 in Projects by daniel500013 (64 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

answered Nov 25, 2019 by Zylann (27,006 points)
selected Nov 25, 2019 by daniel500013
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.