Original Post
I am using LuaInterface to call c# function from Lua.I am using register function to register C# function and call it from Lua. My requirement is: Implement dialog function in C# which will open a form to take user's input. Call the function from Lua with single lua variables.It will open the C# winform with variable value display in the text box.user can modify the textbox value and click on OK.Form will be closed and function call will be finished.I want that my lua variable should contain the value which is set inside C# function. sample Lua script: myvar1=10 dialog(myvar1) --C# function which will open windows form with one text box --In the windows form user will fill 30 in the textbox and --click ok print(myvar1) --This line should print 30 but it is printing 10