当前位置:网站首页>[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);
});
边栏推荐
- Redis批量启停脚本
- 什么是定义?什么是声明?它们有何区别?
- Go language foundation ----- 06 ----- anonymous fields, fields with the same name
- Go language foundation ----- 03 ----- process control, function, value transfer, reference transfer, defer function
- Go language foundation ----- 05 ----- structure
- 华为交换机配置ssh登录远程管理交换机
- haproxy+keepalived搭建01
- Go language foundation ----- 09 ----- exception handling (error, panic, recover)
- 华为交换机:配置telnet和ssh、web访问
- UA camouflage, get and post in requests carry parameters to obtain JSON format content
猜你喜欢
Go language foundation ----- 15 ----- reflection
Unity XR实现交互(抓取,移动旋转,传送,射击)-Pico
截图工具Snipaste
Unity XR realizes interaction (grasping, moving, rotating, transmitting, shooting) -pico
Go language foundation ----- 07 ----- method
C language learning notes (mind map)
HarmonyOS第三次培训笔记
An article for you to understand - Manchester code
Worldview satellite remote sensing image data / meter resolution remote sensing image
[MySQL 14] use dbeaver tool to remotely backup and restore MySQL database (Linux Environment)
随机推荐
Technical dry goods | thinking about the unification of dynamic and static diagrams of AI framework
PAT甲级 1029 Median
[MySQL 14] use dbeaver tool to remotely backup and restore MySQL database (Linux Environment)
Project experience sharing: handwritten Chinese character recognition based on Shengsi mindspire
tp3.2和tp5.0的区别
截图工具Snipaste
多旅行商问题——公式和求解过程概述
Pat grade a 1029 median
【LeetCode】4. Best Time to Buy and Sell Stock·股票买卖最佳时机
Redis batch startup and shutdown script
[at] abc 258G - Triangle 三元組可達-暴力
【LeetCode】3. Merge two sorted lists · merge two ordered linked lists
Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward
Static keyword
C language learning notes (mind map)
C2-关于VCF文件合并的几种方法
What is definition? What is a statement? What is the difference between them?
Go language foundation ----- 09 ----- exception handling (error, panic, recover)
[step on the pit series] MySQL failed to modify the root password
【MySQL 12】MySQL 8.0.18 重新初始化