Setter function 'null instance' error

Godot Version

godot-4

Question

屏幕截图 2024-12-08 004431
2

Line 10 gives a %RoomName is ‘null instance’ error.

This is confusing because it all worked fine until I edited some text values in the editor and suddently code gives me this error. Please help.

1 Like

Looks like a similar problem as in this post. Try the following:

    ...
    if not is_node_ready():
        await ready
    %RoomName.text = name
3 Likes

Thanks for your help!

2 Likes

You’re welcome!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.