首页 > 代码库 > Resources
Resources
【Resources】
The Resources class allows you to find and access Objects including assets.
Resouces类允许你寻找和访问Objects与Assets。
In the editor, Resources.FindObjectsOfTypeAll can be used to locate assets and scene objects.
在编辑里,Resources.FindObjecsOfTypeAll可以被用于定位assets与场景对象。
All assets that are in a folder named "Resources" anywhere in the Assets folder can be accessed via the Resources.Load functions. Multiple "Resources" folders may exist and when loading objects each will be examined.
所有的assets只要在一个在Assets目录或子/子子/...目录下且名字为"Resouces"的目录中,就可以通过Resouces.Load来访问。也就是多个Resouces目录可以并存,当加载对象时每一个Resouces目录都会被检查。
参考:file://localhost/Applications/Unity/Unity.app/Contents/Documentation/Documentation/ScriptReference/Resources.html
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。