+1 vote

How do I get the node from another scene without instantiating?

Godot version 3.2
in Engine by (190 points)

1 Answer

0 votes

get_node is a function available to Nodes that allow them to access other nodes that they are connected to (generally any node in the tree).

The scene separation is not important once they are instantiated and linked together, either by adding a scene to another one declaratively, or through add_child.

However, if a scene is only in file form, and never instantiated, there is no Node that get_node can fetch.

by (2,484 points)
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.