Skip to content

uLua Documentation v1.3.1

Compare
Choose a tag to compare
@atrapalis atrapalis released this 31 Mar 12:00
· 5 commits to main since this release

This update implements support for Lua's script loading functions 'require' and 'loadfile', and fixes an issue with Lua objects.

uLua/ScriptLoader.cs:

  • Added a custom script loader to implement support for the Lua 'require' and 'loadfile' functions. Read the latest documentation for more information on how to use these functions.

uLua/LuaClass.cs:
uLua/LuaMonoBehaviour.cs:

  • Changed the Handle property to support multiple levels of Lua contexts.

Specifically, in the following structure of Lua objects:
Parent1.Parent2.Parent3.MyObject

MyObject.Handle will now correctly return the full global handle "Parent1.Parent2.Parent3.MyObject", instead of "Parent3.MyObject" which was returned until now.