Godot Version
4.2.1
Question
What is the invocation relationship between _process in GDScript and _process in a native class?
4.2.1
What is the invocation relationship between _process in GDScript and _process in a native class?
It’s a virtual function. I think it gets overridden when you extend the class function in gdscript. Try calling super
to get the original implementation, or just remove the declaration of the _process
function from the script.
I tried to invoke the inherited class method _process before, but encountered an error even after adding the virtual qualifier.
I’ve transferred the _process code from my GDExtension to an update method and bound it for GDScript. Now, I can call update(delta) from GDScript’s _process method, and it works seamlessly. Thank you.