@uaknight said:
Here's some quick questions regarding signals:
a) Is a signal emitted even if there are no connected listening nodes?
I believe that signals are emitted even if there are no listing nodes connected to the signal.
b) Will the Global node below receive signals from ObjectA, if a connection is set up?
As far as I know, signal connections do not really care where the nodes are within the scene. So long as the nodes are within the scene it should work. I think Godot internally keeps a reference to the nodes when a connection is made.
The signal connection reference might be NodePath based, in which case it may not work if you re-parent/restructure the scene tree through code while the game is running.
I think the connections are deleted when the nodes containing the signals are connected, but I do not know for sure. I've deleted connected nodes and I don't remember having any issues, so I think Godot handles deleted signals behind the scenes.
c) Will ObjectA receive signals from ObjectB?
Not by default. You'd have to connect the signals. To the best of my knowledge, there are no automatically connected signals in any of the Godot nodes by default.
I should mention that the answers are based on my experience with signals. I haven't really poked around in the Godot source code in quite awhile, so things may be different. :smile: