I use the LuaInterface library to run the lua in .net and it works fine. I could access the CLR via lua. But how to call Lua function from C#?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll need to get a reference to a
LuaFunction, from which you can use the Call() function.Sample code can be found on this website.It seems that in the last 3 years or so, LuaInterface has become a bit less popular and less supported.
In any case, here’s a newer link to a Channel 9 blog post that has some sample code.