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

Method get_script_path

modules/gdscript/gdscript.cpp:1106–1111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1104}
1105
1106String GDScript::get_script_path() const {
1107 if (!path_valid && !get_path().is_empty()) {
1108 return get_path();
1109 }
1110 return path;
1111}
1112
1113Error GDScript::load_source_code(const String &p_path) {
1114 if (p_path.is_empty() || p_path.begins_with("gdscript://") || ResourceLoader::get_resource_type(p_path.get_slice("::", 0)) == "PackedScene") {

Callers 11

resolve_datatypeMethod · 0.80
reduce_identifierMethod · 0.80
type_from_variantMethod · 0.80
_parse_functionMethod · 0.80
inst_to_dictMethod · 0.80
_profile_native_callMethod · 0.80
OPCODEFunction · 0.80
write_startMethod · 0.80
_generate_docsMethod · 0.80

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected