# xebecnan/UniLua

A pure c# implementation of Lua 5.2 focus on compatibility with Unity

Repository: https://github.com/xebecnan/UniLua
Canonical: https://ross.abutalabs.com/products/unilua
Language: C#
License: MIT
License Family: permissive
Last push: 2024-06-22T03:11:53+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4968, "days_push": 802, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1121, forks 288 (observed 2026-08-28T04:03:39.988375+00:00)

## What it is
UniLua is a pure C# implementation of the Lua 5.2 language, focused on compatibility with Unity3D. It implements the core language features including coroutines and metatables, with some standard libraries partially implemented or omitted.

## Use cases
- embed a Lua scripting engine in a Unity game
- run Lua 5.2 scripts from C# code
- call C# functions from Lua scripts
- script game logic in Lua on Unity3D
- use coroutines and metatables in a managed Lua interpreter

## When to choose
- you need a pure C# Lua interpreter with no native dependencies in Unity
- you want Lua 5.2 language semantics including coroutines and metatables
- you cannot use P/Invoke or native Lua libraries in your target platform

## When to avoid
- you need full standard library coverage such as IO or OS libs
- you rely on __gc metamethods, weak tables, or full userdata
- you need maximum Lua runtime performance in performance-critical code

## Facets
- artifact type: library
- maturity: maintenance
- function: interpreter, programming-language
- domain: programming-languages, parsers
- platform: cross-platform, game-engine
- tags: lua, c-sharp, unity3d, scripting, lua-5-2, game-development

## Member repositories
- xebecnan/UniLua (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:39.988375+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:41:02.886783+00:00, confidence not recorded.
  - readme: https://github.com/xebecnan/UniLua (fetched 2026-08-28T04:03:39.988375+00:00, sha f169ce71ab72)
- Data as of 2026-08-30T08:39:29.467469+00:00.
