Lua Framework

$14
Publisher Georges Dimitrov
File size 272.11kB
Number of files 8
Latest version 1
Latest release date 2015-09-02 06:26:27
First release date 2015-02-20 08:58:25
Supported Unity versions 2018.4.2 or higher

Lua Framework allows you to easily and automatically convert data defined in the Lua script language to .NET objects, and vice-versa. It works like XML or JSON readers, but instead of a markup language, you now have access to a powerful programming language to define your game or application’s logic. Like many top-selling games did, choosing Lua can greatly streamline the game design process and most importantly, allow easy-to-implement modding capacities.


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


Lua Framework has two main modules: LuaReader and LuaWriter. LuaReader automatically maps Lua variables and tables to .NET objects. LuaWriter creates a Lua script representation of .NET objects. Currently supported types are:

- Built-in types: bool, int, float, double, string, byte & decimal;
- Enums;
- Unity-specific structs: Color, Color32, Rect, Vector2, Vector3 & Vector4;
- ANY custom classes with public properties;
- One-dimensional or two-dimensional arrays of any supported type;
- Generic Lists or Dictionaries of any supported type;
- Any possible nesting, for example List<Dictionary<string, Vector3[]>>.

You can download the complete manual to get a better understanding of how this asset works:
Lua Framework Manual V 1.1.pdf.


The code for the Lua Framework is clean and professional, performance-optimized (it can process tens of thousands of lines of Lua code under seconds), with full intellisense support.

Forum link: Lua Framework