get node from another scene?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lalel345

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

:bust_in_silhouette: Reply From: Lopy

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.