当前位置:网站首页>【cocos creator】获取资源uuid
【cocos creator】获取资源uuid
2022-07-03 07:44:00 【烧仙草奶茶】
let url = audioName;//resources文件夹下路径
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" });//原生平台地址
console.log(">>path" + path);
});
边栏推荐
- 技术干货|昇思MindSpore算子并行+异构并行,使能32卡训练2420亿参数模型
- Huawei switch: configure Telnet, SSH and web access
- [MySQL 12] MySQL 8.0.18 reinitialization
- Static keyword
- EtherCAT state machine transition (ESM)
- 什么是数据类型?数据类型有什么用?
- Technical dry goods | alphafold/ rosettafold open source reproduction (2) - alphafold process analysis and training Construction
- PAT甲级 1032 Sharing
- Harmonyos third training notes
- 密西根大学张阳教授受聘中国上海交通大学客座教授(图)
猜你喜欢

Go language foundation ----- 19 ----- context usage principle, interface, derived context (the multiplexing of select can be better understood here)

PAT甲级 1029 Median

Application of pigeon nest principle in Lucene minshouldmatchsumscorer

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

Technical dry goods Shengsi mindspire operator parallel + heterogeneous parallel, enabling 32 card training 242 billion parameter model

What to do after the browser enters the URL

Hnsw introduction and some reference articles in lucene9

Robots protocol

技术干货|昇思MindSpore NLP模型迁移之Roberta ——情感分析任务

Go language foundation ----- 15 ----- reflection
随机推荐
Go language foundation ----- 18 ----- collaboration security, mutex lock, read-write lock, anonymous lock, sync Once
技术干货|昇思MindSpore初级课程上线:从基本概念到实操,1小时上手!
Pat class a 1032 sharing
Technical dry goods | Bert model for the migration of mindspore NLP model - text matching task (2): training and evaluation
PHP微信抢红包的算法
在浏览器输入url后执行什么
Analysis of the problems of the 12th Blue Bridge Cup single chip microcomputer provincial competition
Implementation of breadth first in aggregation in ES
技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建
GoLang之结构体
华为交换机Console密码重置、设备初始化、默认密码
技术干货|昇思MindSpore NLP模型迁移之Roberta ——情感分析任务
HDMI2.1与HDMI2.0的区别以及转换PD信号。
什么是定义?什么是声明?它们有何区别?
Pat class a 1030 travel plan
Introduction of novel RNA based cancer therapies
Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward
Technology dry goods | Roberta of the migration of mindspore NLP model - emotion analysis task
Go language foundation ----- 11 ----- regular expression
OSPF protocol summary