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

Method add_editor_plugin

editor/editor_node.cpp:3931–3940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3929}
3930
3931void EditorNode::add_editor_plugin(EditorPlugin *p_editor, bool p_config_changed) {
3932 if (p_editor->has_main_screen()) {
3933 singleton->editor_main_screen->add_main_plugin(p_editor);
3934 }
3935 singleton->editor_data.add_editor_plugin(p_editor);
3936 singleton->add_child(p_editor);
3937 if (p_config_changed) {
3938 p_editor->enable_plugin();
3939 }
3940}
3941
3942void EditorNode::remove_editor_plugin(EditorPlugin *p_editor, bool p_config_changed) {
3943 if (p_editor->has_main_screen()) {

Callers 6

_editor_initFunction · 0.45
_editor_initFunction · 0.45
CanvasItemEditorMethod · 0.45
Node3DEditorMethod · 0.45
ControlEditorToolbarMethod · 0.45

Calls 4

add_main_pluginMethod · 0.80
enable_pluginMethod · 0.80
has_main_screenMethod · 0.45
add_childMethod · 0.45

Tested by

no test coverage detected