Can use lua code in Unity3D

We need to use a specific library written in Lua in a single application.
Is there any possible way besides completely rewriting it in C # / JS?

+5
source share
3 answers

If you target your web player, no. Creating a web player is done in the sandbox and cannot load external code, therefore, with the possible exception of writing the Lua interpreter in C # (!), You are out of luck.

If you target desktop builds or mobile devices, you can enable external plugins and access them through scripts. This means that you can import Lua and tell it to run Lua script (s).

, , Lua , .

, Pro. (iOS/Android) , Lua script, Lua.

+6

lua mono https://github.com/NLua - , unit3d. .

+2

Lua Framework : https://www.assetstore.unity3d.com/en/#!/content/30055

-:

The Lua Framework is built on the power of MoonSharp, a modern and free implementation of the Lua.NET language. Unlike previous .NET bridges for Lua, such as LuaInterface, NLua or UniLua, MoonSharp provides a very intuitive user interface with a fast learning curve, fast performance, regularly updated, supports the latest versions of Lua 5.2 and supports the implementation of Unitys Mono.NET. language out of the box, in all versions of Unity and licenses, including iOS.

+1
source

All Articles