当前位置:网站首页>[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);
});
边栏推荐
- 华为S5700交换机初始化和配置SSH和TELNET远程登录方法
- Pat class a 1028 list sorting
- What to do after the browser enters the URL
- 创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
- LwIP learning socket (application)
- Usage of requests module
- How to configure GDAL under idea
- [MySQL 14] use dbeaver tool to remotely backup and restore MySQL database (Linux Environment)
- Professor Zhang Yang of the University of Michigan is employed as a visiting professor of Shanghai Jiaotong University, China (picture)
- opensips与对方tls sip trunk对接注意事项
猜你喜欢

Unity XR实现交互(抓取,移动旋转,传送,射击)-Pico

【LeetCode】4. Best time to buy and sell stock

haproxy+keepalived集群搭建02

PAT甲级 1032 Sharing

Pycharm remote ssh pyenv error: pydev debugger: warning: trying to add breakpoint to file that does

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

Go language foundation ----- 06 ----- anonymous fields, fields with the same name

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

Technical dry goods | alphafold/ rosettafold open source reproduction (2) - alphafold process analysis and training Construction

技术干货|AI框架动静态图统一的思考
随机推荐
Harmonyos third training notes
Technical dry goods | Bert model for the migration of mindspore NLP model - text matching task (2): training and evaluation
什麼是定義?什麼是聲明?它們有何區別?
LwIP learning socket (application)
opensips与对方tls sip trunk对接注意事项
C2 several methods of merging VCF files
Technology dry goods | Roberta of the migration of mindspore NLP model - emotion analysis task
Pat class a 1031 Hello world for u
PHP常用排序算法
[at] abc 258G - Triangle 三元組可達-暴力
PHP微信抢红包的算法
[MySQL 12] MySQL 8.0.18 reinitialization
【MySQL 13】安装MySQL后第一次修改密码,可以可跳过MySQL密码验证进行登录
Pat class a 1032 sharing
Pat grade a 1027 colors in Mars
Pat grade a 1029 median
截图工具Snipaste
regular expression
Getting started with minicom
Huawei switches are configured with SSH login remote management switches