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

Method _on_plugin_ready

editor/editor_node.cpp:1118–1129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);
1120 if (scr.is_null()) {
1121 return;
1122 }
1123 project_settings_editor->update_plugins();
1124 project_settings_editor->hide();
1125 push_item(scr.operator->());
1126 if (p_activate_name.length()) {
1127 set_addon_plugin_enabled(p_activate_name, true);
1128 }
1129}
1130
1131void EditorNode::_remove_plugin_from_enabled(const String &p_name) {
1132 ProjectSettings *ps = ProjectSettings::get_singleton();

Callers

nothing calls this directly

Calls 5

is_nullMethod · 0.45
update_pluginsMethod · 0.45
hideMethod · 0.45
operator->Method · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected