About this project
PuerTS (普洱TS) is a multi-language scripting solution developed by Tencent for Unity, Unreal Engine, and general .NET projects. It enables developers to write game logic in TypeScript/JavaScript, Lua, or Python (Unity 3.0+) while maintaining high-performance interop with the host engine's C# or C++ APIs.
Key capabilities:
- **Multi-language support**: Unified `ScriptEnv` API across TypeScript, Lua, and Python backends on Unity; Unreal supports TypeScript/JavaScript only.
- **Multiple JS runtimes**: Choose between V8 (default, high performance), QuickJS (small footprint), or Node.js (Node API access).
- **Type-safe bindings**: Automatic TypeScript declaration generation for engine APIs.
- **Cross-platform**: Supports Windows, macOS, Linux, Android, iOS, and WebGL/H5 (via WebGL backend or QuickJS/Lua).
- **Puerts.AI (Unity only)**: Built-in Unity Editor Assistant for natural-language scene building, log analysis, and code inspection; extensible Agent framework for runtime AI-driven NPCs and gameplay agents.
- **Zero-boilerplate interop**: Reflection-based calls plus optional static wrapper generation for performance-critical paths.
- **Ecosystem access**: Leverage npm, LuaRocks, and PyPI packages directly in game projects.
Installation is via Unity Package Manager, Unreal plugins, or NuGet packages for each backend (V8, NodeJS, QuickJS, Lua, Python). Documentation and FAQs are available in English and Chinese.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.