In this lesson, we will look at signals. They are messages that nodes emit when something specific happens to them, like a button being pressed. Other nodes can connect to that signal and call a function when the event occurs.
I get this from the godot script manual. Which means the signal is used by other node.
But if you want check the signal from other node, you need to declare the signal at the head of the script file.
For example signal hit
. If you don't declare it, the signal can't find by other node.
My question is if the signal is designed to connect with other nodes. There is no need to declare the signal at the head of the file. It should be auto declared when the "emit-signal" function occurred. I don't know my understanding of the signal is right or not?