# Tencent/xLua

xLua is a lua programming solution for  C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc.

Repository: https://github.com/Tencent/xLua
Canonical: https://ross.abutalabs.com/products/xlua
Language: C
License: NOASSERTION
License Family: other
Topics: lua, unity, unity3d, csharp, xlua
Last push: 2025-11-21T07:14:15+00:00

## Health v2 (maintenance only)
Score: 49/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 53, release rhythm 15, longevity 100
- inputs: {"age_days": 3556, "days_push": 285, "days_rel": 356, "gap_med": null, "n_releases_24m": 1}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10175, forks 2491 (observed 2026-08-28T04:10:39.756148+00:00)

## What it is
xLua is a Lua scripting solution for C# environments such as Unity, .Net, and Mono, enabling Lua code to interoperate with C# in both directions. It supports runtime hot-patching of C# methods with Lua implementations and offers GC-optimized value type passing across the Lua/C# boundary.

## Use cases
- script unity game logic in lua
- hot patch c# methods at runtime in unity
- call c# code from lua scripts
- avoid gc allocations when passing structs between lua and c#
- embed a lua interpreter in a .net application
- write unity ui and monobehaviour logic in lua

## When to choose
- you need runtime-updatable game logic or hotfixes in a Unity project without rebuilding
- you want mature, widely used Lua-C# binding with strong performance and GC optimizations
- you target multiple platforms including android, ios, windows, linux, and osx

## When to avoid
- your project does not use C#, Unity, .Net, or Mono
- you prefer statically typed scripting or a different scripting language
- you need a general-purpose standalone Lua interpreter outside a C# host

## Facets
- artifact type: library
- maturity: stable
- function: interpreter, plugin-system, concurrency
- domain: programming-languages, cross-platform
- platform: windows, cpp, c
- tags: lua, unity, unity3d, csharp, scripting, hotfix, interop, game-scripting, game-development, android, ios, linux, macos

## Member repositories
- Tencent/xLua (main) score 49

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:39.756148+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-29T17:19:39.310498+00:00, confidence not recorded.
  - readme: https://github.com/Tencent/xLua (fetched 2026-08-28T04:10:39.756148+00:00, sha 5ff8f3e469e1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
