How to get Lua function name which calls C# method? #154
Unanswered
Andreispitz
asked this question in
Q&A
Replies: 1 comment
-
The best way is to include the name/argument in a dynamic delegate. luaEnv[functionName1] = new Func<int,int>((a,b)=>MyC#Method("1", a, b));
luaEnv[functionName2] = new Func<int,int>((a,b)=>MyC#Method("2", a, b));
luaEnv[functionNameN] = new Func<int,int>((a,b)=>MyC#Method("3", a, b)); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have multiple lua functions which are assigned to the same c# method "MyC#Method".
I need to find which is the Lua function which calls the c# method.
How can I find it without sending the lua function name as parameter?
public int MyC#Method(int number) { string myLuaFunction = ????; // any idea how can I find the Lua function name which calls this method ? }
Thanks,
Andrei
Beta Was this translation helpful? Give feedback.
All reactions