当前位置:网站首页>[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);
});
边栏推荐
- JS common basic case sorting (continuous update)
- Iterm2设置
- *p++、*++p、++*p、(*p)++
- PAT甲级 1028 List Sorting
- 密西根大学张阳教授受聘中国上海交通大学客座教授(图)
- 研究显示乳腺癌细胞更容易在患者睡觉时进入血液
- Analysis of the problems of the 12th Blue Bridge Cup single chip microcomputer provincial competition
- 输入三次猜一个数字
- Research shows that breast cancer cells are more likely to enter the blood when patients sleep
- 华为S5700交换机初始化和配置telnet,ssh用户方法
猜你喜欢

Go language foundation ------17 ----- channel creation, read-write, security shutdown, multiplexing select

技术干货|昇思MindSpore NLP模型迁移之Roberta ——情感分析任务

Harmonyos third training notes

【MySQL 11】怎么解决MySQL 8.0.18 大小写敏感问题

Go language foundation ----- 18 ----- collaboration security, mutex lock, read-write lock, anonymous lock, sync Once

多旅行商问题——公式和求解过程概述

haproxy+keepalived集群搭建02

技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估
![[MySQL 11] how to solve the case sensitive problem of MySQL 8.0.18](/img/9b/db5fe1a37e0de5ba363f9e108310a5.png)
[MySQL 11] how to solve the case sensitive problem of MySQL 8.0.18

Go language foundation ----- 13 ----- file
随机推荐
华为交换机:配置telnet和ssh、web访问
Project experience sharing: realize an IR Fusion optimization pass of Shengsi mindspire layer
Go language foundation ----- 15 ----- reflection
Robots protocol
华为交换机Console密码重置、设备初始化、默认密码
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
[MySQL 13] if you change your password for the first time after installing mysql, you can skip MySQL password verification to log in
Analysis of the problems of the 11th Blue Bridge Cup single chip microcomputer provincial competition
Technical dry goods | Bert model for the migration of mindspore NLP model - text matching task (2): training and evaluation
HDMI2.1与HDMI2.0的区别以及转换PD信号。
Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!
How to configure GDAL under idea
Register keyword
Introduction of novel RNA based cancer therapies
register关键字
PHP常用排序算法
PHP微信抢红包的算法
Go language foundation ----- 11 ----- regular expression
static关键字
haproxy+keepalived搭建01