当前位置:网站首页>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
边栏推荐
- pytorch测试的时候为何要加上model.eval()?
- IronOS, an open source system for portable soldering irons, supports a variety of portable DC, QC, PD powered soldering irons, and supports all standard functions of smart soldering irons
- canvas粒子雨动画js特效
- 火花:集群计算工作集
- bug- 切换代理服务器与同步 bug
- Can MySQL do two-way synchronization of multiple vps?
- moxa串口服务器配置说明(moxa串口驱动)
- 【建议收藏】技术面必考题:多线程、多进程
- 2.8K 120Hz touch dual-screen blessing Lingyao X dual-screen Pro 2022 makes the office without fear of imagination
- CodeForces 570D Tree Requests
猜你喜欢
京东软件测试面试题,仅30题就已经拯救了50%的人
MySQL【创建和管理表】
"Find nearby shops" | Geohash+MySQL realizes geographic location filtering
Kernel pwn 入门 (6)
如何防止重复下单?
14年测试人最近的面试经历,值得借鉴√
七夕专属博文-使用QGraphics画“红心“或“黑心“(含数学模型讲解)
MUI 做手机返回操作栏
Break the limit of file locks and use storage power to help enterprises grow new momentum
时序数据库在船舶风险管理领域的应用
随机推荐
14年测试人最近的面试经历,值得借鉴√
pytorch测试的时候为何要加上model.eval()?
行程排序(暑假每日一题 12)
手机扫码登陆原理(扫码充电线原理)
intentservice使用(Intention)
PHP security flaws: session hijacking, cross-site scripting, SQL injection and how to fix them
全新升级!《云原生架构白皮书 2022 版》重磅发布
flink -redis sink 可以sink 到集群吗?
27英寸横置大屏+实体按键,全新探险者才是安全而合理的做法
A full review of mainstream timed task solutions
hzero-resource秒退
BPM是什么意思?BPM的优势及好处有哪些?
到底什么才是真正的商业智能(BI)
Use Canvas to implement mobile phone signature
ESP8266-Arduino programming example-GA1A12S202 logarithmic scale analog light sensor
请问nacos 连接mysql失败后会重新连接吗?
美国弗吉尼亚大学、微软 | Active Data Pattern Extraction Attacks on Generative Language Models(对生成语言模型的主动数据模式提取攻击)
2.8K 120Hz touch dual-screen blessing Lingyao X dual-screen Pro 2022 makes the office without fear of imagination
请问下怎么取数据库中上一个小时的数据到odps进行实时节点的同步呢
shell 基础之函数编写