@@ -22,7 +22,7 @@ public class UIPackage
2222 public static bool unloadBundleByFGUI = true ;
2323
2424 /// <summary>
25- /// Package id. It is generated by the Editor, or set by customId .
25+ /// Package id. It is generated by the Editor.
2626 /// </summary>
2727 public string id { get ; private set ; }
2828
@@ -32,21 +32,22 @@ public class UIPackage
3232 public string name { get ; private set ; }
3333
3434 /// <summary>
35- ///
35+ /// Use this callback to provide resources to the package.
3636 /// </summary>
37- /// <param name="name"></param>
38- /// <param name="extension"></param>
39- /// <param name="type"></param>
37+ /// <param name="name">Resource name without extension.</param>
38+ /// <param name="extension">Resource extension. e.g. '.png' '.wav'</param>
39+ /// <param name="type">Resource type. e.g. 'Texture' 'AudioClip'</param>
40+ /// <param name="destroyMethod">How to destroy this resource.</param>
4041 /// <returns></returns>
4142 public delegate object LoadResource ( string name , string extension , System . Type type , out DestroyMethod destroyMethod ) ;
4243
4344 /// <summary>
44- /// A async load resource callback. After loaded, call item.owner.SetItemAsset.
45+ /// A async load resource callback. After loaded, you should call item.owner.SetItemAsset.
4546 /// </summary>
46- /// <param name="name"></param>
47- /// <param name="extension"></param>
48- /// <param name="type"></param>
49- /// <param name="item"></param>
47+ /// <param name="name">Resource name without extension. </param>
48+ /// <param name="extension">Resource extension. e.g. '.png' '.wav' </param>
49+ /// <param name="type">Resource type. e.g. 'Texture' 'AudioClip' </param>
50+ /// <param name="item">Resource item object. </param>
5051 /// <returns></returns>
5152 public delegate void LoadResourceAsync ( string name , string extension , System . Type type , PackageItem item ) ;
5253
@@ -325,11 +326,11 @@ public static UIPackage AddPackage(string assetPath, LoadResource loadFunc)
325326 }
326327
327328 /// <summary>
328- /// 使用自定义的加载方式载入一个包。
329+ /// Load Package by custom load method.
329330 /// </summary>
330- /// <param name="descData">描述文件数据。 </param>
331- /// <param name="assetNamePrefix">资源文件名前缀。如果包含,则载入资源时名称将传入assetNamePrefix_resFileName这样格式。可以为空。 </param>
332- /// <param name="loadFunc">载入函数 </param>
331+ /// <param name="descData">Description file data </param>
332+ /// <param name="assetNamePrefix">Prefix of the resource file name. The file name would be in format of 'assetNamePrefix_resFileName'. It can be empty. </param>
333+ /// <param name="loadFunc">Load method </param>
333334 /// <returns></returns>
334335 public static UIPackage AddPackage ( byte [ ] descData , string assetNamePrefix , LoadResource loadFunc )
335336 {
@@ -348,11 +349,11 @@ public static UIPackage AddPackage(byte[] descData, string assetNamePrefix, Load
348349 }
349350
350351 /// <summary>
351- /// 使用自定义的加载方式载入一个包。
352+ /// Load Package async by custom load method.
352353 /// </summary>
353- /// <param name="descData">描述文件数据。 </param>
354- /// <param name="assetNamePrefix">资源文件名前缀。如果包含,则载入资源时名称将传入assetNamePrefix_resFileName这样格式。可以为空。 </param>
355- /// <param name="loadFunc">载入函数 </param>
354+ /// <param name="descData">Description file data </param>
355+ /// <param name="assetNamePrefix">refix of the resource file name. The file name would be in format of 'assetNamePrefix_resFileName'. It can be empty. </param>
356+ /// <param name="loadFunc">Load method </param>
356357 /// <returns></returns>
357358 public static UIPackage AddPackage ( byte [ ] descData , string assetNamePrefix , LoadResourceAsync loadFunc )
358359 {
0 commit comments