MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / get_uid_for_ext_resource

Function get_uid_for_ext_resource

compat/resource_compat_text.cpp:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50inline ResourceUID::ID get_uid_for_ext_resource(const Ref<Resource> &p_resource) {
51 Ref<ResourceInfo> compat = ResourceInfo::get_info_from_resource(p_resource);
52 if (compat.is_valid()) {
53 return compat->uid;
54 }
55 if (GDRESettings::get_singleton()) {
56 return GDRESettings::get_singleton()->get_uid_for_path(p_resource->get_path());
57 }
58 return ResourceUID::INVALID_ID;
59}
60
61///
62

Callers 1

save_to_fileMethod · 0.85

Calls 3

get_uid_for_pathMethod · 0.80
is_validMethod · 0.45
get_pathMethod · 0.45

Tested by

no test coverage detected