-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Description
重现如下:修改HotfixTest2.cs
[Hotfix]
[LuaCallCSharp]
public class BaseTest : BaseTestBase
{
public override void Foo(int p)
{
Debug.Log("BaseTest.Foo, p = " + p);
}
}
运行HotfixTest2场景,会报错:
LuaException: [string "Init"]:112: attempt to call a nil value (upvalue 'func')
stack traceback:
[string "Init"]:112: in method 'Foo'
[string "chunk"]:4: in function <[string "chunk"]:2>
XLua.LuaEnv.ThrowExceptionFromError (Int32 oldTop) (at Assets/XLua/Src/LuaEnv.cs:430)
XLua.DelegateBridge.__Gen_Delegate_Imp22 (System.Object p0, Int32 p1) (at Assets/XLua/Gen/DelegatesGensBridge.cs:650)
BaseTest.Foo (Int32 p)
HotfixTest2.Start () (at Assets/XLua/Examples/08_Hotfix/HotfixTest2.cs:382)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels