xlua 给glist怎么绑定渲染函数

LuaException: c# exception in FixCSFunction:System.InvalidCastException: This type must add to CSharpCallLua: FairyGUI.ListItemRenderer
  at XLua.ObjectTranslator.CreateDelegateBridge (System.IntPtr L, System.Type delegateType, System.Int32 idx) [0x001a8] in /Volumes/Work/quanle/Assets/XLua/Src/ObjectTranslator.cs:535 
  at XLua.ObjectCasters+<>c__DisplayClass23_0.<genCaster>b__1 (System.IntPtr L, System.Int32 idx, System.Object target) [0x0002f] in /Volumes/Work/quanle/Assets/XLua/Src/ObjectCasters.cs:442 
  at XLua.ObjectTranslator.GetObject (System.IntPtr L, System.Int32 index, System.Type type) [0x000cc] in /Volumes/Work/quanle/Assets/XLua/Src/ObjectTranslator.cs:895 
已邀请:

谷主

赞同来自:

我不会xlua。你在github上搜fairygui xlua

liubohong

赞同来自:

问题已解决在 FairyGUI.ListItemRenderer 上加个特性就行【CSharpCallLua】

要回复问题请先登录注册