-
-
Notifications
You must be signed in to change notification settings - Fork 597
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
Object does not dispatch NOTIFICATION_POSTINITIALIZE #1269
Comments
Thanks! I'm not 100% sure if this should be handled on the godot-cpp side or on the Godot side, so this will need some investigation and discussion. |
That's reasonable, hopefully, it's something we can get into 4.2 :) |
Hi @dsnopek, I'm curious if you have had a chance to see what the impact/effort is for this? |
Well, it's really simple to fix on the godot-cpp side - I think it'd just be adding one line of code. :-) But what I need to look into is if it's possible/desirable to fix this on the Godot side instead. If we can fix it on the Godot side, then all bindings will be fixed, rather than each having to do their own fix for this issue. |
Discussed at the GDExtension meeting, and we favored having the GDExtension bindings dispatching It would be helpful to have more feedback from other language binding maintainers, /cc @Bromeon |
I guess that makes sense, and I'm fine with the extension dispatching But how do people learn about this? Where would be a good place to document it? |
We probably need a "how to create GDExtension bindings" document, but that'll be a tricky thing to start given that there's so much to write and we probably can't get it all in one pass. Maybe it could be a "tips for creating GDExtension bindings" first? |
Godot version
4.2
godot-cpp version
4.2
System information
Windows 11
Issue description
When a custom resource is defined, such as:
The
_notification
method is never dispatched with NOTIFICATION_POSTINITIALIZE like it is in Godot / GDScript.Steps to reproduce
Create
MyResource
as outlined above using:or using
memnew
In neither case is the NOTIFICATION_POSTINITIALIZE fired.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: