Archived

This topic is now archived and is closed to further replies.

Anyone use C# to call Lua?

This topic is 5149 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve never used Lua before, but if I was you i would either search for a wrapper around lua, otherwise use the [DLLImport] attribute from System.Runtime.InteropServices to call the functions in the lua dll''s directly...

Share this post


Link to post
Share on other sites
Here is a question, if your using C# why are you using an external scripting language.

It might be easier to use reflection and then use any .NET language instead.

Then you get the advantage that your scripting is compiled to native code and doesnt have to go throught thunking layers to access your code/data

Share this post


Link to post
Share on other sites