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
When trying to use this class as an editor plugin, Godot prints an error:
ERROR: Script inherits from native type 'MyEditorPluginBase', so it can't be assigned to an object of type 'EditorPlugin'.
at: instance_create (modules/gdscript/gdscript.cpp:390)
Steps to reproduce
Make a GDExtension subclass of EditorPlugin (the programming language used doesn't matter)
Make a GDScript subclass of that GDExtension class
Try to use it as an editor plugin (create plugin.cfg, enable it in the project settings)
Minimal reproduction project (MRP)
As requested by @YuriSizov, I made a godot-cpp example to make it easier to reproduce this issue (but note that I'm not a C++ developer and blindly copied code from the documentation):
Tested versions
4.2.1.rc1
System information
Linux
Issue description
This is a direct continuation of #85268, see that issue for context.
Although #85268 is technically fixed, something else prevents such inheritance from being implemented:
When trying to use this class as an editor plugin, Godot prints an error:
Steps to reproduce
EditorPlugin
(the programming language used doesn't matter)plugin.cfg
, enable it in the project settings)Minimal reproduction project (MRP)
As requested by @YuriSizov, I made a godot-cpp example to make it easier to reproduce this issue (but note that I'm not a C++ developer and blindly copied code from the documentation):
NativeEditorPluginTest.zip
See also #85268 for a godot-rust example
The text was updated successfully, but these errors were encountered: