MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / init_plugins

Method init_plugins

editor/editor_node.cpp:1101–1116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1099}
1100
1101void EditorNode::init_plugins() {
1102 _initializing_plugins = true;
1103 Vector<String> addons;
1104 if (ProjectSettings::get_singleton()->has_setting("editor_plugins/enabled")) {
1105 addons = GLOBAL_GET("editor_plugins/enabled");
1106 }
1107
1108 for (const String &addon : addons) {
1109 set_addon_plugin_enabled(addon, true);
1110 }
1111 _initializing_plugins = false;
1112
1113 if (!pending_addons.is_empty()) {
1114 EditorFileSystem::get_singleton()->connect("script_classes_updated", callable_mp(this, &EditorNode::_enable_pending_addons), CONNECT_ONE_SHOT);
1115 }
1116}
1117
1118void EditorNode::_on_plugin_ready(Object *p_script, const String &p_activate_name) {
1119 Ref<Script> scr = Object::cast_to<Script>(p_script);

Callers 1

Calls 3

connectMethod · 0.65
has_settingMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected