tencent/xlua

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

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 2 minutes ago
Added to GitGenius on September 6th, 2026
Created on December 7th, 2016
Open Issues & Pull Requests: 288 (+0)
GitHub issues: Enabled
Number of forks: 2,488
Total Stargazers: 10,189 (+0)
Total Subscribers: 514 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.0 days
Mean response time: 99.7 days
90th percentile: 335.8 days
Tracked items: 51

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 7% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 44
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 792 days
Stale 30+ days: 41
Stale 90+ days: 40

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Detailed Description

xLua is a Lua scripting solution for C# environments including Unity, .Net, and Mono that enables seamless interoperability between Lua and C# code across multiple platforms.

The tool addresses the need to extend C# applications with dynamic scripting capabilities by embedding a Lua virtual machine that can call C# methods, properties, operators, and events, and vice versa. Its approach centers on tight integration between the two languages, allowing developers to write game logic or patches in Lua while leveraging existing C# libraries and frameworks. Key distinguishing features include the ability to replace C# implementations with Lua equivalents at runtime, garbage collection optimization that avoids allocations when passing structs and enums between Lua and C#, and editor-time development without requiring code generation.

Projects using xLua should consider it when they need dynamic scripting in Unity or other C# environments, particularly for rapid iteration during development or for implementing hot-patching systems. The tool is especially suited to game development workflows where designers or scripters benefit from Lua's flexibility. The hot-patching capability allows runtime replacement of C# method logic with Lua implementations, making it valuable for live service games or applications requiring post-deployment fixes without recompilation. Installation is straightforward, involving copying the Assets directory into a Unity project, and the tool provides extensive documentation including tutorials, configuration guides, and API references.

Development activity shows consistent engagement with the codebase through regular updates and maintenance of documentation. The project maintains comprehensive guides covering configuration, common questions, and advanced features like custom code generation. Example code and tutorial implementations are included to support new users. The tool supports a wide range of platforms including Android, iOS, Windows, Linux, and macOS, indicating ongoing platform compatibility work.