How can I access this label that isnt in the same tree

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

The script path is located in root/Game/script location

The node path I want to get is located in root/Menu/menu2/Labal

(Using placeholder names for example)

How can I get the label I tried using get_node but it keeps printing nulls
here is a picture to make it easier to understand: Legobet88 🀄 Trustworthy Agen Situs Slot Online Bet88 Terpercaya Ter- Gacor Hari Ini 2024

user info is the script and team name at the bottom is the label I want to access

:bust_in_silhouette: Reply From: exuin

In order to access a parent node with get_node(), you must use “…”. So try get_node("../../Menu/DebugTeam/TeamName"). Or you can use an absolute path, which I think should be get_node("/root/Menu/DebugTeam/TeamName").

:bust_in_silhouette: Reply From: CharlesMerriam

You seem to be trying to get different scenes to communicate.

You can instance the Menu scene, send a signal, or use the ‘…/…’ notation to the path.