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

Method remove_editor_plugin

editor/editor_node.cpp:3942–3960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3940}
3941
3942void EditorNode::remove_editor_plugin(EditorPlugin *p_editor, bool p_config_changed) {
3943 if (p_editor->has_main_screen()) {
3944 singleton->editor_main_screen->remove_main_plugin(p_editor);
3945 }
3946 p_editor->make_visible(false);
3947 p_editor->clear();
3948 if (p_config_changed) {
3949 p_editor->disable_plugin();
3950 }
3951 singleton->editor_plugins_over->remove_plugin(p_editor);
3952 singleton->editor_plugins_force_over->remove_plugin(p_editor);
3953 singleton->editor_plugins_force_input_forwarding->remove_plugin(p_editor);
3954 singleton->remove_child(p_editor);
3955 singleton->editor_data.remove_editor_plugin(p_editor);
3956
3957 for (KeyValue<ObjectID, HashSet<EditorPlugin *>> &kv : singleton->active_plugins) {
3958 kv.value.erase(p_editor);
3959 }
3960}
3961
3962void EditorNode::add_extension_editor_plugin(const StringName &p_class_name) {
3963 ERR_FAIL_COND_MSG(!ClassDB::class_exists(p_class_name), vformat("No such editor plugin registered: %s", p_class_name));

Callers

nothing calls this directly

Calls 8

remove_main_pluginMethod · 0.80
disable_pluginMethod · 0.80
has_main_screenMethod · 0.45
make_visibleMethod · 0.45
clearMethod · 0.45
remove_pluginMethod · 0.45
remove_childMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected