Label issues with scene composition

Godot Version

4.5.1

Question

Hey! I have this scene:

That i then put in this scene:

And the label is not shown here at all.

What confuses me is that if I add a Label under a Node2D where the HealthComponent is in the scene that it’s not showing, that label will show like so:

Why does the HealthComponent’s Label not show up when i put it in this scene? I tried adding a Canvas as a parent, and also tried using the Label3D node instead without success.

This gray script means that you added the HealthComponent through Add Child Node... context menu, which will add only the root node, but not any of the child nodes (like the Label you want to see).

You need to add the full PackedScene into your tree, just drag the relevant .tscn file from the FileSystem into your SceneTree.

1 Like

Wow, thank you for clarifying this! :slight_smile: I had no idea.

1 Like