# topameng/tolua

The fastest unity lua binding solution

Repository: https://github.com/topameng/tolua
Canonical: https://ross.abutalabs.com/products/tolua
Language: C#
License: MIT
License Family: permissive
Topics: unity, luabind, luajit, tolua
Last push: 2024-01-19T07:45:37+00:00

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

## Adoption (not part of the score)
Stars 3057, forks 865 (observed 2026-08-28T04:07:39.779462+00:00)

## What it is
tolua# is a Unity Lua static binding solution that uses reflection-based code analysis to automatically generate wrapper classes for calling C# and Unity APIs from Lua. It maps C# constants, variables, functions, properties, classes, and enums into Lua with minimal GC overhead.

## Use cases
- bind C# code to Lua in a Unity game
- script Unity game logic in Lua
- generate Lua binding wrappers for Unity APIs
- hot-update game logic via Lua scripts
- call Unity engine classes from Lua without reflection at runtime

## When to choose
- you need fast, low-GC Lua interop in Unity
- you want automatic binding code generation instead of manual wrappers
- you need broad Unity type support including delegates, events, enums, and coroutines

## When to avoid
- your project targets Unity versions beyond 5.x without testing
- you prefer a reflection-based dynamic binding like ulua
- you need a maintained solution with recent Unity support

## Facets
- artifact type: library
- maturity: maintenance
- function: sdk, plugin-system, interpreter
- domain: programming-languages, developer-tools
- platform: game-engine, dotnet, lua, cross-platform
- tags: unity, lua-binding, luajit, static-binding, code-generation, game-scripting, game-development

## Member repositories
- topameng/tolua (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:39.779462+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-30T07:28:49.326840+00:00, confidence not recorded.
  - readme: https://github.com/topameng/tolua (fetched 2026-08-28T04:07:39.779462+00:00, sha ee18c5646812)
- Data as of 2026-08-30T08:39:29.467469+00:00.
