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

Method set_scene_path

editor/editor_data.cpp:890–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888}
889
890void EditorData::set_scene_path(int p_idx, const String &p_path) {
891 ERR_FAIL_INDEX(p_idx, edited_scene.size());
892 edited_scene.write[p_idx].path = p_path;
893
894 if (!edited_scene[p_idx].root) {
895 return;
896 }
897 edited_scene[p_idx].root->set_scene_file_path(p_path);
898}
899
900String EditorData::get_scene_path(int p_idx) const {
901 ERR_FAIL_INDEX_V(p_idx, edited_scene.size(), String());

Callers 2

_dialog_actionMethod · 0.80
_make_scene_confirmMethod · 0.80

Calls 2

set_scene_file_pathMethod · 0.80
sizeMethod · 0.65

Tested by

no test coverage detected