-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Virtual function dispatch for Resources not working #698
Comments
Can you please describe the problem in a minimal complete example here, so users don't need to download a ZIP package? Thanks! |
I edited my initial Comment, I hope that helps. I can also push the demo project from the zip file t github if you want. |
I meant http://www.sscce.org, i.e. a small code example that is enough to demonstrate the problem, focuses only on the problem and removes anything that's not absolutely necessary. But it's still self-contained, so others can quickly test it, without the need to download + compile + load the whole project. If Godot scenes are necessary to reproduce the issue, you can either set them up in code or describe how they look in some comments. Don't get me wrong, the .zip can still be useful, but it should be an addition to the actual problem description. It must be possible to understand and discuss the issue without download. Thanks for your understanding! 🙂 |
I think if you want virtual methods like this to work you'll have to call them like self.base().call("test_virtual".into(), &[]); because otherwise you'll just end up calling the rust function. maybe we should change this so that the |
If I have a CustomResource like this:
and extend it into an actual implementation like this:
I get an Unimplemented Error, if I try to call
get_value()
from rust like so:Reproduction Steps
./bin
folder./godot
main.tscn
There are Exceptions in the Output.
Expected Behaviour
I expect a console output of
Value: Lila
.The text was updated successfully, but these errors were encountered: