UIObjectFactory
命名空间:FairyGUI
源码:Assets/Scripts/UI/UIObjectFactory.cs (行 13)
public class UIObjectFactory
方法
Clear()
public static void Clear();
源码:UI/UIObjectFactory.cs (行 91)
NewObject(ObjectType)
public static GObject NewObject(ObjectType type);
| 参数 | 类型 | 说明 |
|---|---|---|
type | ObjectType |
源码:UI/UIObjectFactory.cs (行 135)
NewObject(PackageItem, Type)
public static GObject NewObject(PackageItem pi, System.Type userClass = null);
| 参数 | 类型 | 说明 |
|---|---|---|
pi | PackageItem | |
userClass | Type |
源码:UI/UIObjectFactory.cs (行 103)
SetExtension(string, Type, LuaFunction)
public static void SetExtension(string url, System.Type baseType, LuaFunction extendFunction);
编译条件:
FAIRYGUI_TOLUA
| 参数 | 类型 | 说明 |
|---|---|---|
url | string | |
baseType | Type | |
extendFunction | LuaFunction |
源码:UI/UIObjectFactory.cs (行 49)
SetLoaderExtension(GLoaderCreator)
public static void SetLoaderExtension(GLoaderCreator creator);
| 参数 | 类型 | 说明 |
|---|---|---|
creator | GLoaderCreator |
源码:UI/UIObjectFactory.cs (行 79)
SetLoaderExtension(Type)
public static void SetLoaderExtension(System.Type type);
| 参数 | 类型 | 说明 |
|---|---|---|
type | Type |
源码:UI/UIObjectFactory.cs (行 70)
SetPackageItemExtension(string, GComponentCreator)
public static void SetPackageItemExtension(string url, GComponentCreator creator);
| 参数 | 类型 | 说明 |
|---|---|---|
url | string | |
creator | GComponentCreator |
源码:UI/UIObjectFactory.cs (行 36)
SetPackageItemExtension(string, Type)
public static void SetPackageItemExtension(string url, System.Type type);
| 参数 | 类型 | 说明 |
|---|---|---|
url | string | |
type | Type |
源码:UI/UIObjectFactory.cs (行 26)