Skip to content

uLua Documentation v3.0.0

Choose a tag to compare

@atrapalis atrapalis released this 20 Aug 18:23
· 2 commits to main since this release

This is a major release which includes critical new features, as well as significant architectural changes. The design intent for this update was to make use-cases and options clearer for users, to minimise dependencies on classes such as LuaMonoBehaviour, and to remove any bloat accumulated over-time with previous releases.

New features:

  • LuaExposeSequencer: A new MonoBehaviour script that is configured in the inspector to expose game components from other objects to Lua.
  • External asset support: Various types of custom assets can now be loaded externally and accessed from Lua. This includes an asset loading cache, a Lua API for loading, listing, and getting assets. This feature is integrated with script packages.

General code review:

  • Base class refactor: Previous versions of uLua expected users to make extensive use of the abstract classes ExposedMonoBehaviour / LuaMonoBehaviour for Unity MonoBehaviours, and ExposedClass / LuaClass for other data structures. In v3.0 this system has been simplified. ExposedMonoBehaviour is deprecated, leaving its functionality fully implemented in LuaMonoBehaviour. In addition ExposedClass / LuaClass were removed completely.
  • Deprecated code: All previously deprecated and obsolete code has been removed with this update.