UIPackage.LoadResource
命名空间:FairyGUI
源码:Assets/Scripts/UI/UIPackage.cs (行 47)
public delegate object LoadResource(string name, string extension, System.Type type, out DestroyMethod destroyMethod);
Use this callback to provide resources to the package.
| 参数 | 类型 | 说明 |
|---|---|---|
name | string | Resource name without extension. |
extension | string | Resource extension. e.g. '.png' '.wav' |
type | Type | Resource type. e.g. 'Texture' 'AudioClip' |
destroyMethod | DestroyMethod | How to destroy this resource. |