当前位置:网站首页>[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);
});
边栏推荐
- yarn link 是如何帮助开发者对 NPM 包进行 debug 的?
- How to configure GDAL under idea
- 【LeetCode】4. Best Time to Buy and Sell Stock·股票买卖最佳时机
- 【cocos creator】获取资源uuid
- HarmonyOS第三次培训笔记
- 华为交换机Console密码重置、设备初始化、默认密码
- vcs import src < ros2. Repos failed
- Analysis of the problems of the 12th Blue Bridge Cup single chip microcomputer provincial competition
- [MySQL 13] if you change your password for the first time after installing mysql, you can skip MySQL password verification to log in
- Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward
猜你喜欢

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

技术干货|AI框架动静态图统一的思考

EtherCAT state machine transition (ESM)

haproxy+keepalived集群搭建02

Getting started with minicom

VMware virtual machine configuration static IP

Go language foundation ----- 01 ----- go language features

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

【LeetCode】2. Valid Parentheses·有效的括号

Docker installs MySQL and successfully uses Navicat connection
随机推荐
PostGIS space function
Pycharm remote ssh pyenv error: pydev debugger: warning: trying to add breakpoint to file that does
研究显示乳腺癌细胞更容易在患者睡觉时进入血液
Go language foundation ----- 02 ----- basic data types and operators
Enter three times and guess a number
What to do after the browser enters the URL
experiment.........
Redis batch startup and shutdown script
Introduction of novel RNA based cancer therapies
HDMI2.1与HDMI2.0的区别以及转换PD信号。
PHP常用排序算法
Redis批量启停脚本
Pat class a 1031 Hello world for u
Go language foundation ------ 12 ------ JSON
Go language - loop statement
华为S5700交换机初始化和配置telnet,ssh用户方法
Client server model
Precautions for opensips and TLS SIP trunk docking
什么是数据类型?数据类型有什么用?
Technical dry goods Shengsi mindspire dynamic transformer with variable sequence length has been released!