Skip to content

uLua Documentation v1.3.0

Choose a tag to compare

@atrapalis atrapalis released this 01 Mar 23:54

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 ScriptPackage which 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 the ScriptPackage class. 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, and RemoveUserScript have been made obsolete.

Other:

  • Support for Unity Editor versions 2019.4 and 2020.3 is discontinued with this release.