当前位置:网站首页>[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);
});
边栏推荐
- [untitled]
- What to do after the browser enters the URL
- vcs import src < ros2. Repos failed
- jsutlis
- [MySQL 12] MySQL 8.0.18 reinitialization
- OSPF protocol summary
- 截图工具Snipaste
- GoLang之结构体
- Technical dry goods Shengsi mindspire innovation model EPP mvsnet high-precision and efficient 3D reconstruction
- EtherCAT state machine transition (ESM)
猜你喜欢
![[untitled]](/img/3d/27a7229e3f0ccf0ca5ae1f00a92513.jpg)
[untitled]

Go language foundation ------ 12 ------ JSON

密西根大学张阳教授受聘中国上海交通大学客座教授(图)

【MySQL 12】MySQL 8.0.18 重新初始化

Go language foundation ----- 03 ----- process control, function, value transfer, reference transfer, defer function

【cocos creator】点击按钮切换界面

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

Technical dry goods | thinking about the unification of dynamic and static diagrams of AI framework

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

VMware virtual machine configuration static IP
随机推荐
opensips与对方tls sip trunk对接注意事项
Go language foundation ----- 13 ----- file
Enter three times and guess a number
Project experience sharing: Based on mindspore, the acoustic model is realized by using dfcnn and CTC loss function
【LeetCode】3. Merge two sorted lists · merge two ordered linked lists
PHP常用排序算法
go语言-循环语句
Go language foundation ----- 09 ----- exception handling (error, panic, recover)
Go language foundation ----- 05 ----- structure
An article for you to understand - Manchester code
[untitled]
UA camouflage, get and post in requests carry parameters to obtain JSON format content
haproxy+keepalived搭建01
Install cross compiler arm none liunx gnueabihf
[at] abc 258G - Triangle 三元组可达-暴力
Go language foundation ------17 ----- channel creation, read-write, security shutdown, multiplexing select
Go language foundation ----- 03 ----- process control, function, value transfer, reference transfer, defer function
优质博客——
[MySQL 14] use dbeaver tool to remotely backup and restore MySQL database (Linux Environment)
What is definition? What is a statement? What is the difference between them?