当前位置:网站首页>[cocos creator] get the resource UUID
[cocos creator] get the resource UUID
2022-07-03 07:53:00 【Braised fairy grass milk tea】
let url = audioName;//resources The path under the folder
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" });// Native platform address
console.log(">>path" + path);
});
边栏推荐
- The difference between hdmi2.1 and hdmi2.0 and the conversion of PD signals.
- 什么是定义?什么是声明?它们有何区别?
- Analysis of the problems of the 11th Blue Bridge Cup single chip microcomputer provincial competition
- experiment.........
- 创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
- 在浏览器输入url后执行什么
- 技术干货|关于AI Architecture未来的一些思考
- Pat class a 1031 Hello world for u
- Go language foundation ----- 06 ----- anonymous fields, fields with the same name
- HarmonyOS第三次培训笔记
猜你喜欢

UA camouflage, get and post in requests carry parameters to obtain JSON format content
![[untitled]](/img/3d/27a7229e3f0ccf0ca5ae1f00a92513.jpg)
[untitled]

Oracle queries grouped by time

PAT甲级 1032 Sharing

Shengsi mindspire is upgraded again, the ultimate innovation of deep scientific computing

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

【MySQL 12】MySQL 8.0.18 重新初始化

Project experience sharing: handwritten Chinese character recognition based on Shengsi mindspire

Go language foundation ----- 16 ----- goroutine, GPM model

Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!
随机推荐
PAT甲级 1029 Median
PAT甲级 1028 List Sorting
Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward
C2-关于VCF文件合并的几种方法
Pat class a 1028 list sorting
Screenshot tool snipaste
Quelle est la définition? Qu'est - ce qu'une déclaration? Quelle est la différence?
Technical dry goods | thinking about the unification of dynamic and static diagrams of AI framework
Technical dry goods | Bert model for the migration of mindspore NLP model - text matching task (2): training and evaluation
VMware virtual machine configuration static IP
Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!
Static keyword
【MySQL 13】安装MySQL后第一次修改密码,可以可跳过MySQL密码验证进行登录
PAT甲级 1027 Colors in Mars
PDO and SDO concepts
Docker installs MySQL and successfully uses Navicat connection
Go language foundation ------ 12 ------ JSON
Usage of (case, when) in PostgreSQL
Redis view client connection
Oracle queries grouped by time