classes/class_signal #176
Replies: 5 comments 3 replies
-
Why is the function has_signal( Signal_Name : String) not in here? |
Beta Was this translation helpful? Give feedback.
-
The C# example code is methods are missing the obligated "public" text |
Beta Was this translation helpful? Give feedback.
-
@Calinou are there any guarantees on call order? E.g. if I connect callables A, B and C, will they be called in the same order on emit? I've heard some people say it's not guaranteed, but reading the source code, my understanding is that Signals store their connected Callables in HashMaps, which maintain order of insertion. So, in theory, when iterating through the callables in Edit: I've also failed to find official docs on this, but it's entirely possible I've just missed something 😅 |
Beta Was this translation helpful? Give feedback.
-
It seems not to be written anywhere, but if you if you store So |
Beta Was this translation helpful? Give feedback.
-
The
This led me to believe that a signal could have only one connection at all. I'm not one to read the entire documentation page, so while this is obvious if you read the entire document top-to-bottom, it's not if you, for instance, ctrl-click in the editor to see the Can this be reworded slightly differently? Maybe like this: "Signals cannot be connected multiple times to the same Callable". I think it's a little less vague than the current wording. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
classes/class_signal
A built-in type representing a signal of an Object. Description: Signal is a built-in Variant type that represents a signal of an Object instance. Like all Variant types, it can be stored in variab...
https://docs.godotengine.org/en/stable/classes/class_signal.html
Beta Was this translation helpful? Give feedback.
All reactions