-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signal method gets called within the editor and returns "not found" error #13070
Comments
CC @neikeq |
Can this still be reproduced in the current master branch? |
Yes, but this is not specific to C#. The same error occur with connections GDScript. |
Is there a known workaround for using signals with Mono? |
Here's a minimal reproduction project from #19826: Example Project.zip |
I have this issue but it's not related to C#, but to the
Seems to happen with any kind of node, and both if the signal is connected to the node or the parent. (I also tried it in a blank project, and it behaved the same way.) I tested this just now using a 3.1 nightly build from Hugo Lucurcio's site that I just downloaded. I haven't tested other signals. |
@reduz Not a mono issue. |
This would have to be solved in a way that it still allows for tool scripts to connect to those signals in the editor. |
This is not specific to tool scripts, but to any node with a signal attached that can be called by the editor, when the editor itself uses this node (e.g. AnimationPlayer's |
@akien-mga Yeah I know. I just mentioned that because the first instinct might be just not to connect those signals while in the editor, but then tool scripts who might want to receive signals while in the editor would not receive them. That's why I mentioned them there. If a signal like |
I'm still encountering this error in Godot v3.2.2. If a setter/getter emits a signal, and is invoked in a tool script which connects to non-tool scripts, the console will log 'Method not found' errors.
Here's a simple reproduction project: signal-errors.zip Editing the LineEdit's 'melodic' property in the editor throws errors as it tries to send a signal to a non-tool node. I'd expect the signals to just be tossed into the void. |
Please open a new issue, this was fixed two years ago. |
By adding a signal method to a C# script (such as Control's _resized()), Godot calls it on the editor and returns the error:
core\object.cpp:1127 - Error calling method from signal 'resized': Control(Window.cs)::OnWindowResized': Method not found.
Script:
The text was updated successfully, but these errors were encountered: