Skip to content
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

Allow creating editor plugins #333

Closed
lilizoey opened this issue Jul 7, 2023 · 2 comments · Fixed by #393
Closed

Allow creating editor plugins #333

lilizoey opened this issue Jul 7, 2023 · 2 comments · Fixed by #393
Labels
c: register Register classes, functions and other symbols to GDScript feature Adds functionality to the library

Comments

@lilizoey
Copy link
Member

lilizoey commented Jul 7, 2023

In 4.1 it is now possible for gdextension libraries to register editor plugins. godotengine/godot#77010

It seems we just need to call editor_add_plugin to add a new plugin, and editor_remove_plugin to remove it. We should probably make the unregistering automatic by default. we can for instance add it in the default layer's deinit method. but we should make sure to document that if you override that function, you should either manually unregister editor plugins somewhere else, or re-add the automatic unregistration function.

@lilizoey lilizoey added feature Adds functionality to the library c: register Register classes, functions and other symbols to GDScript labels Jul 7, 2023
@atty303
Copy link

atty303 commented Jul 15, 2023

I am writing EditorImportPlugin in Rust and would be happy to do this.

@Bromeon
Copy link
Member

Bromeon commented Aug 1, 2023

@atty303 could you elaborate your experience with it? Where would gdext come in handy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: register Register classes, functions and other symbols to GDScript feature Adds functionality to the library
Projects
None yet
3 participants