Skip to content

uLua Documentation v1.2.1

Choose a tag to compare

@atrapalis atrapalis released this 26 Oct 12:27
· 10 commits to main since this release

This version introduces two new features. A blacklist for user API calls, and the ability to specify the Lua name of an ExposedMonoBehaviour component. Technical details are listed below.

uLua/API.cs:

  • Added an API blacklist for user scripts. Using the UserBlacklist option on the Unity inspector, you can exclude specific Lua globals from being available in user scripts.

uLua/LuaMonoBehaviour.cs:

  • Added the option to assign a Lua name to LuaMonoBehaviour scripts. To use this feature, use the Name option on the Unity inspector, or the Name field in a script. If a name is not specified, the game object's name will be used by default.

uLua/Lua.cs:

  • Added a warning for when a Lua global is reassigned using the Lua.Set() method.