[muzzik记录]:获取全路径

if (cc["resources"]) {
    return cc.assetManager.utils.getUrlWithUuid(cc["resources"].getInfoWithPath(path_s_).uuid, { isNative: cc.sys.isNative, ext: ".json" });
} else {
    return cc.url.raw(`resources/${path_s_}.json`);
}

后缀按类型替换

2赞

OMG!, thanks a lot, I was looking all over for a replacement to cc.url.raw.
this work perfectly!

2赞

3.8怎么获取啊

what’s this