当前位置:网站首页>【cocos creator】获取资源uuid
【cocos creator】获取资源uuid
2022-07-03 07:44:00 【烧仙草奶茶】
let url = audioName;//resources文件夹下路径
cc.loader.loadRes(url, cc.AudioClip, (err, clip: cc.AudioClip) => {
if (err || !clip) {
return;
}
const uuid = cc.assetManager.utils.getUuidFromURL(clip.nativeUrl);//uuid
const path = cc.assetManager.utils.getUrlWithUuid(uuid, {
isNative: true, nativeExt: ".mp3" });//原生平台地址
console.log(">>path" + path);
});
边栏推荐
- 华为交换机Console密码重置、设备初始化、默认密码
- yarn link 是如何帮助开发者对 NPM 包进行 debug 的?
- 项目经验分享:基于昇思MindSpore实现手写汉字识别
- Go language foundation ----- 19 ----- context usage principle, interface, derived context (the multiplexing of select can be better understood here)
- [at] abc 258G - Triangle 三元组可达-暴力
- What did the DFS phase do
- 【MySQL 11】怎么解决MySQL 8.0.18 大小写敏感问题
- Go language foundation ------ 12 ------ JSON
- 【LeetCode】2. Valid parentheses · valid parentheses
- Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition
猜你喜欢

Technical dry goods Shengsi mindspire innovation model EPP mvsnet high-precision and efficient 3D reconstruction

技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建

Es writing fragment process

Screenshot tool snipaste

Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward

在浏览器输入url后执行什么

Go language foundation ----- 04 ----- closure, array slice, map, package

PAT甲级 1029 Median

Analysis of the problems of the 10th Blue Bridge Cup single chip microcomputer provincial competition

Go language foundation ------ 12 ------ JSON
随机推荐
Go language foundation ------ 12 ------ JSON
Go language foundation ----- 06 ----- anonymous fields, fields with the same name
PHP常用排序算法
HarmonyOS第三次培训笔记
PAT甲级 1031 Hello World for U
Lucene merge document order
【MindSpore论文精讲】AAAI长尾问题中训练技巧的总结
Go language foundation ----- 07 ----- method
Go language foundation ----- 03 ----- process control, function, value transfer, reference transfer, defer function
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
experiment.........
Go language foundation ------17 ----- channel creation, read-write, security shutdown, multiplexing select
opensips与对方tls sip trunk对接注意事项
【LeetCode】4. Best time to buy and sell stock
What is definition? What is a statement? What is the difference between them?
[at] abc 258G - Triangle 三元组可达-暴力
GoLang之结构体
Differences between tp3.2 and tp5.0
LwIP learning socket (application)
Usage of requests module