Godot Version
4.3
Question
I have a simple InteractionManager scene attached with an interaction_manager script. This script is an autoload. Under this node, there is a label node,
Whenever I try to get the node path for the label, like this:
this error pops up
Here is the scene structure:
I’ve tried the absolute path and the same error occurs. Help
Hey, I’m a Newbie and you might be WAY ahead of me…
But when you right click on Label2, you should see an area that states: Access as unique name…
Click this to give it a unique name in your code, then hold down the left mouse button and drag it into you @onready section and before letting go of the left mouse button click LEFT CTRL and then let go and it will import Label2 to your project with a unique var name.
The script is an Autoload, but not your InteractionManager scene. You need to load the .tscn
scene as an Autoload instead of the .gd
script. Othwerise it will only create a node for the script, not any children.
2 Likes
Yes, that was the issue, thank you so much!