Repository navigation
uLua Documentation v1.3.0
This version introduces a new feature called Script Packages which lets users organise Lua scripts and control the order of execution. Technical details are listed below.
uLua/ScriptPackage.cs:
- Added a new class
ScriptPackagewhich contains information about a script package, such as its name, description, version, list of contents, and dependencies, etc.
uLua/API.cs:
- Added support for execution of scripts from folders located in the directory specified by
ScriptPackagesPath. The specified directory is parsed for folders which contain a json file with the structure dictated by theScriptPackageclass. Scripts contained in these folders are executed as a package. Properties defined in the json file can control the execution order, dependencies, and load behaviour of the script package. For more information and examples on how to structure a script package read section 2.4 in the documentation. - Methods
AddUserScript,ClearUserScripts, andRemoveUserScripthave been made obsolete.
Other:
- Support for Unity Editor versions 2019.4 and 2020.3 is discontinued with this release.