Repository navigation
uLua Documentation v3.0.0
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/LuaMonoBehaviourfor Unity MonoBehaviours, andExposedClass/LuaClassfor other data structures. In v3.0 this system has been simplified.ExposedMonoBehaviouris deprecated, leaving its functionality fully implemented inLuaMonoBehaviour. In additionExposedClass/LuaClasswere removed completely. - Deprecated code: All previously deprecated and obsolete code has been removed with this update.