当前位置:网站首页>【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);
});
边栏推荐
- LwIP learning socket (API)
- Go language foundation ----- 06 ----- anonymous fields, fields with the same name
- Go language foundation ----- 19 ----- context usage principle, interface, derived context (the multiplexing of select can be better understood here)
- experiment.........
- Technical dry goods Shengsi mindspire operator parallel + heterogeneous parallel, enabling 32 card training 242 billion parameter model
- OSPF protocol summary
- 技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建
- 技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估
- The difference between hdmi2.1 and hdmi2.0 and the conversion of PD signals.
- Redis查看客户端连接
猜你喜欢
技术干货|利用昇思MindSpore复现ICCV2021 Best Paper Swin Transformer
WorldView卫星遥感影像数据/米级分辨率遥感影像
Go language foundation ----- 15 ----- reflection
项目经验分享:基于昇思MindSpore,使用DFCNN和CTC损失函数的声学模型实现
Harmonyos third training notes
The difference between hdmi2.1 and hdmi2.0 and the conversion of PD signals.
【LeetCode】3. Merge Two Sorted Lists·合并两个有序链表
Redis批量启停脚本
【LeetCode】4. Best time to buy and sell stock
Research shows that breast cancer cells are more likely to enter the blood when patients sleep
随机推荐
[at] ABC 258g - triple Reach - violence
[at] ABC 258g - Triangle triples reachable - violence
【LeetCode】2. Valid Parentheses·有效的括号
What is definition? What is a statement? What is the difference between them?
Microsoft Security Response Center
Go language foundation ----- 13 ----- file
技术干货|昇思MindSpore Lite1.5 特性发布,带来全新端侧AI体验
PAT甲级 1030 Travel Plan
截图工具Snipaste
Screenshot tool snipaste
What did the DFS phase do
Analysis of the problems of the 12th Blue Bridge Cup single chip microcomputer provincial competition
Huawei s5700 switch initialization and configuration Telnet, SSH user methods
Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!
How does yarn link help developers debug NPM packages?
Go language foundation ----- 09 ----- exception handling (error, panic, recover)
Harmonyos third training notes
Traversal in Lucene
Project experience sharing: realize an IR Fusion optimization pass of Shengsi mindspire layer
[at] abc 258G - Triangle 三元组可达-暴力