当前位置:网站首页>The untiy Resources directory dynamically loads resources
The untiy Resources directory dynamically loads resources
2022-08-01 16:16:00 【Wu Zimu】
First of all, the folder must be called Resources, and the name cannot be wrong.
All resources in Resources will be loaded when the program starts. If the content is too large, it will have a greater impact on the startup time.Care not to recommend using
but in practice we often use
This is an example of loading an audio clip
AudioClip ac = Resources.Load<AudioClip>("Voice/"+ voiceName); There are two points to pay attention to
1. You do not need to write / before the secondary folder of Resources, and you need to write a / before the streamingAssets folder.
2. The Resources file only needs to give the file name, no suffix name is allowed
边栏推荐
猜你喜欢
![MySQL [create and manage tables]](/img/5f/fc5d278f32df859e2c454b6d8467ed.png)
MySQL [create and manage tables]

gconf/dconf编程实战(1)gconf和dconf介绍

蚂蚁首次披露核心基础软件技术开源版图

js邯郸市地图网页源码下载

【paper】Cam2BEV论文浅析

8年软件测试工程师感悟 —— 写给还在迷茫中的朋友

“查找附近的商铺”|Geohash+MySQL实现地理位置筛选

pynlpir更新license Error: unable to fetch newest license解决方案

DOM树jsjs特效代码

"Find nearby shops" | Geohash+MySQL realizes geographic location filtering
随机推荐
LeetCode50天刷题计划(Day 11—— 最接近的三数之和(8.40-10.00)
js判断是pc端还是移动端(包括ipad)
ECCV 2022 | Poseur:你以为我是姿态估计,其实是目标检测哒
Spark: Cluster Computing with Working Sets
AI艺术‘美丑’不可控?试试 AI 美学评分器~
LeetCode50天刷题计划(Day 7—— 字符串转换整数 (atoi) 12.20-15.20)
TiFlash 存储层概览
LeetCode50天刷题计划(Day 6—— 整数反转 14.20-15.20)
DOM树jsjs特效代码
27英寸横置大屏+实体按键,全新探险者才是安全而合理的做法
gconf/dconf实战编程(2)利用gconf库读写配置实战以及诸多配套工具演示
ODrive开发 #1 ODrive固件开发指南[通俗易懂]
珠海市生物安全P3实验室主体结构封顶
Go 单元测试
Why should model.eval() be added to the pytorch test?
SQL函数 TIMESTAMPDIFF
MUI as a mobile phone to return to the action bar
到底什么才是真正的商业智能(BI)
百图生科卓越开发者计划全面升级暨《计算免疫问题白皮书》发布
flink-sql 可以单独配置某个算子节点的并行度吗?