Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Utilities
1/6
uLua is a scripting framework which enables the development of a Lua API for your Unity project. Users, as well as developers, may use this API to add content to your project by writing Lua scripts.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Additional compatibility information

uLua has been tested and is compatible with the following LTS versions of Unity:

  • 2022.3.31f1
  • 2023.3.10f1
Package dependencies
1
This package needs other Asset Store packages in order to work.
Description

uLua is a scripting framework which enables the development of a Lua API for your Unity project. Users, as well as developers, may use this API to add content to your project by writing Lua scripts.


uLua wraps around MoonSharp and provides an object oriented Lua Modding framework.

It works by setting up an application-wide Lua context and exposing game objects to it.

Objects exposed to the Lua context can then be accessed in Lua scripts, allowing users to interact with Unity Engine at runtime.


uLua includes the following features:

  • Lua Sandbox: Expose your game object components and data structures to Lua by utilising the base classes provided.
  • Script Execution: Execute Lua scripts from the Resources folder or an external directory.
  • Event System: Invoke events in C# or Lua and implement the relevant callbacks/handlers in Lua.
  • Packages: Organise scripts in packages which can be easily installed and removed from a project. Packages feature a dependency system which can be used to enforce a specific execution order.

Before you purchase uLua, feel free to check out the following resources:

  • uLua Documentation: The full documentation, including a tutorial on how to use the toolkit.
  • uLua Paddle Game: A demo game made to demonstrate the use of this framework. Comes with documentation, a tutorial, and compiled executables to test on your setup.
Technical details

Note: You must install the Unity MoonSharp plugin before you can use uLua.


uLua consists of the following main scripts:

  • uLua.Lua: A wrapper class providing an application-wide Lua context.
  • uLua.API: Class that implements an event handling system and a script execution framework.
  • uLua.ExposedClass: Class which exposes its instances to Lua. To use as a base for data structures which will be accessible in your API.
  • uLua.ExposedMonoBehaviour: MonoBehaviour script which exposes its instances to Lua. To use as a base for game object components which will be accessible in your API.

Lua Modding Framework

(not enough ratings)
53 users have favourite this asset
(53)
$15
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
721.0 KB
Latest version
2.2.2
Latest release date
Feb 10, 2025
Original Unity version
2021.3.31 or higher
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR