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

Method script_class_load_script

editor/editor_data.cpp:1011–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1009}
1010
1011Ref<Script> EditorData::script_class_load_script(const String &p_class) const {
1012 if (!ScriptServer::is_global_class(p_class)) {
1013 return Ref<Script>();
1014 }
1015
1016 String path = ScriptServer::get_global_class_path(p_class);
1017 return ResourceLoader::load(path, "Script");
1018}
1019
1020void EditorData::script_class_set_icon_path(const String &p_class, const String &p_icon_path) {
1021 _script_class_icon_paths[p_class] = p_icon_path;

Callers 1

_get_hierarchyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected