当前位置:网站首页>[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);
});
边栏推荐
- Analysis of the problems of the 12th Blue Bridge Cup single chip microcomputer provincial competition
- Precautions for opensips and TLS SIP trunk docking
- Huawei s5700 switch initialization and configuration Telnet, SSH user methods
- An article for you to understand - Manchester code
- jsutlis
- 项目经验分享:基于昇思MindSpore实现手写汉字识别
- Go language foundation ----- 01 ----- go language features
- Go language foundation ----- 10 ----- string related operations (operation function, string conversion)
- PHP常用排序算法
- [MySQL 11] how to solve the case sensitive problem of MySQL 8.0.18
猜你喜欢

Go language foundation ----- 13 ----- file

Redis batch startup and shutdown script

An article for you to understand - Manchester code

一篇文章让你读懂-曼彻斯特编码

Professor Zhang Yang of the University of Michigan is employed as a visiting professor of Shanghai Jiaotong University, China (picture)

The difference between hdmi2.1 and hdmi2.0 and the conversion of PD signals.

VMware virtual machine configuration static IP

vcs import src < ros2. Repos failed

HDMI2.1与HDMI2.0的区别以及转换PD信号。

Worldview satellite remote sensing image data / meter resolution remote sensing image
随机推荐
What is definition? What is a statement? What is the difference between them?
Go language - loop statement
基于RNA的新型癌症疗法介绍
Precautions for opensips and TLS SIP trunk docking
Pat grade a 1029 median
【LeetCode】2. Valid parentheses · valid parentheses
截图工具Snipaste
Technology dry goods | Roberta of the migration of mindspore NLP model - emotion analysis task
[untitled]
【LeetCode】3. Merge two sorted lists · merge two ordered linked lists
Shengsi mindspire is upgraded again, the ultimate innovation of deep scientific computing
Quality blog——
Huawei switch: configure Telnet, SSH and web access
Project experience sharing: handwritten Chinese character recognition based on Shengsi mindspire
Harmonyos third training notes
【MySQL 13】安装MySQL后第一次修改密码,可以可跳过MySQL密码验证进行登录
华为交换机基础配置(telnet/ssh登录)
Install cross compiler arm none liunx gnueabihf
LwIP learning socket (application)
Enter three times and guess a number