Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | godotnoobperson |
I’m studying this asset:
https://godotengine.org/asset-library/asset/693
In res://Inventory/UI/ItemSlot.tscn, it has this line at the top:
onready var inv_comp = get_node(“…/…/…/”).inv_comp
What does that do?
I understand get_node is supposed to get the node using the node name and its parents. But from what I know “…/” is supposed to address its parent. So in this case, it’s 3 parents above. The script was added to the highest parent, so I don’t know anymore.
Also what does “.inv_comp” do? I see that it’s a variable?