I'm studying this asset:
In res://Inventory/UI/ItemSlot.tscn, it has this line at the top:
onready var invcomp = getnode("../../../").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?