What is bLua?
bLua is a plugin for Unity that allows C# code to easily interact with native Lua 5.4 and vice versa. That means running blazing fast Lua code with just two lines of code.
bLuaInstance instance = new bLuaInstance();
instance.DoString("print('Hello world!')");
What makes bLua special?
bLua is lightweight and runs Lua code using native Lua 5.4, so your Lua code will run anywhere from 100 to 10,000 times faster than with plugins like Moonsharp and XLua! Try our benchmarks yourself in the bLua example Unity project.
bLua was made with Unity development in mind, so there are no extra steps for getting Lua integrated into your Unity project. Simply clone the bLua repository into your /Assets/Plugins/bLua
folder.
bLua also runs on the latest version of Lua (Lua 5.4), which is faster and has more features than older versions of Lua.
bLua is an open-source project being developed by Lua lovers. Contributors are listed on the website as a thanks for their work.
If you have interest in contributing to the project, join our Discord server and inquire about becoming a contributor. Wanna help in other ways?
- Encourage others to check us out!
- Drop a star on our GitHub repository!
- Point out bugs and make feature requests in our Discord!
Tyster actively maintains and updates bLua.
Denivarius and the team at DMHub created the original native Lua interop that became bLua.
World to Build uses bLua to power Lua scripts in over 2,500 user-created World to Build games.