This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I just want to set text , but I encounter this error first.
I think the code was correct , but I have no idea , how this happen?

my tree

This is the code.

self.get_node("BG/TextLabel").text = "omg hax"


get_node: Node not found: BG/TextLabel.
Godot version v3.2.3
in Engine by (15 points)

this can happen before _ready() is called.
did you use export var for setting message?
can't say what exact problem is with just 1 line of code.

Where is the script attached?

WayfairSalesRep -Dialog

1 Answer

0 votes
Best answer

who is self?
get_node is likely not pointing to the correct address, try with "/root/Dialog/BG/TextLabel"

by (1,514 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.