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

Method get_editor_plugin_states

editor/editor_data.cpp:320–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320Dictionary EditorData::get_editor_plugin_states() const {
321 Dictionary metadata;
322 for (int i = 0; i < editor_plugins.size(); i++) {
323 Dictionary state = editor_plugins[i]->get_state();
324 if (state.is_empty()) {
325 continue;
326 }
327 metadata[editor_plugins[i]->get_plugin_name()] = state;
328 }
329
330 return metadata;
331}
332
333Dictionary EditorData::get_scene_editor_states(int p_idx) const {
334 ERR_FAIL_INDEX_V(p_idx, edited_scene.size(), Dictionary());

Callers 1

_save_editor_statesMethod · 0.80

Calls 4

sizeMethod · 0.65
get_stateMethod · 0.45
is_emptyMethod · 0.45
get_plugin_nameMethod · 0.45

Tested by

no test coverage detected