Enable and disable Plugins via GDscript

Godot Version

Godot 4.2.1

Question

Its there a way to enable or disable a plugin by code? the manual way its to switch these toggles in pluggin windows like this.

imagen

in my mind the logical step is access the plugin data from ProjectSetting Singleton like this.

var editor_config_plugins = ProjectSettings.get_setting("editor_plugins/enabled")

but only get the array of resorces paths to the plugin .cfg files

["res://addons/plugin_reloader/plugin.cfg", "res://addons/vertex_snap/plugin.cfg"]

With EditorInterface.set_plugin_enabled()

1 Like

Thank You! :star_struck:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.