Unity Setup
bLua was built with Unity usage in mind, so setting up your Unity project with bLua is straightforward.
- Download the contents of the bLua repository.
- Create a folder in your Unity project under
/Assets/Plugins/bLua
. - Put the files you downloaded into this new folder.
That's it! Continue to the next section to start running Lua code, or review possible issues and their solutions below.
Possible Issues
error CS0227: Unsafe code may only appear in compiling with /unsafe.
bLua uses unsafe code for some features. You can enable "Allow 'unsafe' code" in Unity's Player Settings to fix this error.
Troubleshooting
If you're having trouble setting up bLua in your Unity project, feel free to ask for further assistance in the bLua Discord server.