You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The signal class's emit method is not accessible as a property of type Callable. This means that if you have the following code:
varemit_method: Callable=my_signal.emit
The code does not run, and you're left with the following errors
res://signal_test.gd:6 - Parse Error: Cannot find property "emit" on base "Signal".
res://signal_test.gd:6 - Parse Error: Cannot find member "emit" in base "Signal".
If you're curious as to use cases, this prevents me from doing things like this:
# Wait until idle time to emit a signalmy_signal.emit.call_deferred()
Tested versions
This makes me think that the issue has already been addressed, but I couldn't find an issue anywhere
System information
Godot v4.2.1.stable.mono (b09f793) - Freedesktop SDK 23.08 (Flatpak runtime) - X11 - Vulkan (Forward+) - integrated Intel(R) Xe Graphics (TGL GT2) () - 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 Threads)
Issue description
The signal class's
emit
method is not accessible as a property of typeCallable
. This means that if you have the following code:The code does not run, and you're left with the following errors
If you're curious as to use cases, this prevents me from doing things like this:
Which is far nicer than something like
Steps to reproduce
Minimal reproduction project (MRP)
Signal Bug.zip
The text was updated successfully, but these errors were encountered: