Godot Version
Stable 4.2
Question
World (Scene)
- UI (PackedScene)
UI (Scene) (There is a signal, which then triggers a signal in the HotBar)
- HotBar (Node)
I have a “World” scene in which I put a “UI” scene, that is, in “World”, I cannot directly interact with the child nodes of “UI”. There is a node “HotBar” in the “UI” scene. I have a script in my autoloader “GlobalScript” that is connected to “World”. In it, I tried to emit (emit_signal) my custom signal in “UI” using @onready var ui = $UI, but it didn’t work (ui.emit_signal(…)). Then I tried loading the scene itself into GlobalScript via preload(…).instantiate() and also tried to emit the signal, but it also didn’t work (or rather it did, but I was accessing a packed scene that is not modified, and I need to work in real time). So, what is the best way to uncompress the signal so that it works in real time?
That is, I need a sequence of calls from GlobalScript “World” I send a signal to “UI”, and from “UI” the received signal, sends a signal to “Hotbar”