跳到主要内容

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.

参数类型说明
namestringResource name without extension.
extensionstringResource extension. e.g. '.png' '.wav'
typeTypeResource type. e.g. 'Texture' 'AudioClip'
destroyMethodDestroyMethodHow to destroy this resource.