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
After building the extension, you can MyClass in the editor. However, you can't override foo() function as GDscript doesn't see it and it isn't shown in documentation section.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered:
godot/godot-cpp#910 mentions a possible work around by using call("_virtual_func") instead but even that isn't ideal when dealing with multiple related classes (and might not even work when overriding it in C++.)
This is especially annoying as documentation is also broken for GDExtension if I'm not mistaken and makes defining extendable classes quite difficult.
Reimplementing the GDVIRTUAL macros is impossible as Object::get_script_instance and the ScriptInstance class aren't exposed.
Godot version
4.1.1
System information
Pop!_OS 22.04
Issue description
Using
BIND_VIRTUAL_METHOD
script in_bind_methods()
doesn't create a virtual function in GDScript.Steps to reproduce
After building the extension, you can
MyClass
in the editor. However, you can't overridefoo()
function as GDscript doesn't see it and it isn't shown in documentation section.Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: