当前位置:网站首页>【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);
});
边栏推荐
- 【LeetCode】4. Best time to buy and sell stock
- 技术干货|昇思MindSpore NLP模型迁移之Roberta ——情感分析任务
- Pat class a 1032 sharing
- s7700设备如何清除console密码
- Go language foundation ----- 06 ----- anonymous fields, fields with the same name
- Enter three times and guess a number
- Pat class a 1030 travel plan
- 基于RNA的新型癌症疗法介绍
- What is definition? What is a statement? What is the difference between them?
- Analysis of the eighth Blue Bridge Cup single chip microcomputer provincial competition
猜你喜欢

创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03

Project experience sharing: realize an IR Fusion optimization pass of Shengsi mindspire layer

技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估

Pat class a 1031 Hello world for u

LwIP learning socket (application)

【LeetCode】3. Merge Two Sorted Lists·合并两个有序链表

技术干货|利用昇思MindSpore复现ICCV2021 Best Paper Swin Transformer

Iterm2 setting

The difference between hdmi2.1 and hdmi2.0 and the conversion of PD signals.

【MindSpore论文精讲】AAAI长尾问题中训练技巧的总结
随机推荐
技术干货|利用昇思MindSpore复现ICCV2021 Best Paper Swin Transformer
【LeetCode】3. Merge Two Sorted Lists·合并两个有序链表
項目經驗分享:實現一個昇思MindSpore 圖層 IR 融合優化 pass
GoLang之结构体
Go language foundation ----- 09 ----- exception handling (error, panic, recover)
[at] abc 258G - Triangle 三元组可达-暴力
Traversal in Lucene
[step on the pit series] MySQL failed to modify the root password
The difference between hdmi2.1 and hdmi2.0 and the conversion of PD signals.
Analysis of the ninth Blue Bridge Cup single chip microcomputer provincial competition
Unity XR实现交互(抓取,移动旋转,传送,射击)-Pico
Redis配置文件
什么是定义?什么是声明?它们有何区别?
Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!
PAT甲级 1029 Median
Shengsi mindspire is upgraded again, the ultimate innovation of deep scientific computing
WorldView卫星遥感影像数据/米级分辨率遥感影像
Go language foundation ----- 08 ----- interface
Differences between tp3.2 and tp5.0
Go language foundation ----- 16 ----- goroutine, GPM model