首页 > 代码库 > 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