+2 votes

My scene tree is like that, but the box and text node does not appear in the screen


in Engine by (14 points)

Try parenting them to the CanvasLayer node instead of the Timer.

it stil doesn't work

I have the same problem, and I can't find out how to make it visible. As soon as I remove the label from the hierarchy, it shows up. Note that the CanvasLayer hides all nodes, not just labels. I initially tried to set up a progress bar, which didn't work as well. However, the label is visible in the editor.

1 Answer

+3 votes

I don't know if this also applies to your problem, but I could solve my problem as follows:

I used a camera attached to my player which follows him. All my HUD elements where arranged to that camera.

You must arrange the HUD elements relative to the origin at (0,0), where the blue frame indicates the screen size.

That was my problem. Hope this helps someone on the future.

by (26 points)

it works, the problem is that the hud follows the player, and my player doesn't make the same moviment as the camera, so it is weird.

I was having the HUD visible in the editor, but not in the game. Going over the tutorial I was using the tutor mentioned putting the HUD in the Gaming Window which has 0,0 in the top left corner. My game scene was all over the place. Once I put the HUD inside the original gaming window of Godot, my HUD APPEARED!

Apparently this is a Canvas characteristic based upon the original gaming window size and location.

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.