当前位置:网站首页>【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);
});
边栏推荐
- 华为交换机Console密码重置、设备初始化、默认密码
- How to clear the console password for s7700 device
- 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
- Pat class a 1031 Hello world for u
- Technology dry goods | luxe model for the migration of mindspore NLP model -- reading comprehension task
- Professor Zhang Yang of the University of Michigan is employed as a visiting professor of Shanghai Jiaotong University, China (picture)
- 【踩坑系列】mysql 修改root密码失败
- Partage de l'expérience du projet: mise en œuvre d'un pass optimisé pour la fusion IR de la couche mindstore
- UA camouflage, get and post in requests carry parameters to obtain JSON format content
猜你喜欢
Technical dry goods | Bert model for the migration of mindspore NLP model - text matching task (2): training and evaluation
Professor Zhang Yang of the University of Michigan is employed as a visiting professor of Shanghai Jiaotong University, China (picture)
Go language foundation ------17 ----- channel creation, read-write, security shutdown, multiplexing select
Collector in ES (percentile / base)
OSPF experiment
Go language foundation ----- 10 ----- string related operations (operation function, string conversion)
在浏览器输入url后执行什么
【LeetCode】4. Best time to buy and sell stock
[mindspire paper presentation] summary of training skills in AAAI long tail problem
Go language foundation ----- 08 ----- interface
随机推荐
C2-关于VCF文件合并的几种方法
【MySQL 11】怎么解决MySQL 8.0.18 大小写敏感问题
Project experience sharing: Based on mindspore, the acoustic model is realized by using dfcnn and CTC loss function
Technical dry goods | some thoughts on the future of AI architecture
Pat class a 1028 list sorting
What is definition? What is a statement? What is the difference between them?
研究显示乳腺癌细胞更容易在患者睡觉时进入血液
Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition
[MySQL 12] MySQL 8.0.18 reinitialization
【LeetCode】2. Valid parentheses · valid parentheses
【踩坑系列】mysql 修改root密码失败
Pat class a 1030 travel plan
WorldView卫星遥感影像数据/米级分辨率遥感影像
Differences between tp3.2 and tp5.0
Lucene hnsw merge optimization
Quality blog——
PHP common sorting algorithm
【LeetCode】3. Merge two sorted lists · merge two ordered linked lists
Go language foundation ----- 09 ----- exception handling (error, panic, recover)
技术干货|百行代码写BERT,昇思MindSpore能力大赏