Replies: 1 comment 1 reply
-
Hi! @onready var ctrl_inventory = $GUI/CtrlInventory
@onready var player = $Player
func _ready() -> void:
ctrl_inventory.inventory = player.inventory |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I try to separate my GUI and the Inventory.
I attached the Inventory to my Player-Scene and the Inventory-Control to my Main GUI-Node.
In the GUI-Node I need a reference to my Player-Inventory. But with the "three points" I can not add another node, only nodes in the same Scene as the GUI.
How Can I solve this?
Beta Was this translation helpful? Give feedback.
All reactions