xLua icon indicating copy to clipboard operation
xLua copied to clipboard

偶尔lua调用unity方法会报错

Open qqzz0xx opened this issue 8 years ago • 1 comments

LuaException: c# exception:Non-static method requires a target.,stack: at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in :0 at XLua.OverloadMethodWrap.Call (IntPtr L) [0x00193] in C:\Rummy\src\Assets\XLua\Src\MethodWarpsCache.cs:242 at XLua.MethodWrap.Call (IntPtr L) [0x00070] in C:\Rummy\src\Assets\XLua\Src\MethodWarpsCache.cs:299 stack traceback: [C]: in method 'GetComponent'

qqzz0xx avatar Mar 29 '18 13:03 qqzz0xx

成员函数用冒号,你耦合用错点了

chexiongsheng avatar Mar 30 '18 02:03 chexiongsheng