[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115166":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":33,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},115166,"puerts","Tencent\u002Fpuerts","Tencent","PUER(普洱) Typescript. Let's write your game in UE or Unity with TypeScript.","",null,"C",6273,871,89,298,0,6,1,68.42,"Other",false,"master",true,[25,26,27,28,29,30,31,32],"dotnet","javascript","nodejs","quickjs","typescript","unity","unrealengine","v8","2026-11-23 04:07:22","2026-11-23 04:48:01","![Logo](https:\u002F\u002Fraw.githubusercontent.com\u002FTencent\u002Fpuerts\u002Frefs\u002Fheads\u002Fmaster\u002Fdoc\u002Fpic\u002Fpuerts_logo.png)\n\n[![license](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-BSD_3_Clause-blue.svg)](https:\u002F\u002Fgithub.com\u002FTencent\u002Fpuerts\u002Fblob\u002Fmaster\u002FLICENSE)\n[![PRs Welcome](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPRs-welcome-blue.svg)](https:\u002F\u002Fgithub.com\u002FTencent\u002Fpuerts\u002Fpulls)\n![Unity_Test](https:\u002F\u002Fgithub.com\u002FTencent\u002Fpuerts\u002Factions\u002Fworkflows\u002Funity_unittest.yml\u002Fbadge.svg?branch=master)\n![Unreal_CI](https:\u002F\u002Fgithub.com\u002FTencent\u002Fpuerts\u002Factions\u002Fworkflows\u002Funreal_ci.yml\u002Fbadge.svg?branch=master)\n![Nuget_Build](https:\u002F\u002Fgithub.com\u002FTencent\u002Fpuerts\u002Factions\u002Fworkflows\u002Fbuild_nuget.yml\u002Fbadge.svg?branch=master)\n\n## Unreal Releases\n\n[![unreal](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Funreal-v1.0.9-blue.svg)](https:\u002F\u002Fgithub.com\u002FTencent\u002Fpuerts\u002Freleases\u002Ftag\u002FUnreal_v1.0.9)\n\n## Unity Releases\n\n[![unity](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Funity-v3.0.2(latest)-blue.svg)](https:\u002F\u002Fgithub.com\u002FTencent\u002Fpuerts\u002Freleases\u002Ftag\u002FUnity_v3.0.3)\n[![unity](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Funity-v2.2.3(lts)-blue.svg)](https:\u002F\u002Fgithub.com\u002FTencent\u002Fpuerts\u002Freleases\u002Ftag\u002FUnity_v2.2.3)\n\n## Nuget Releases\n\n[![Puerts.V8.Complete](https:\u002F\u002Fimg.shields.io\u002Fnuget\u002Fv\u002FPuerts.V8.Complete.svg?label=Puerts.V8)](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FPuerts.V8.Complete)\n[![Puerts.NodeJS.Complete](https:\u002F\u002Fimg.shields.io\u002Fnuget\u002Fv\u002FPuerts.NodeJS.Complete.svg?label=Puerts.NodeJS)](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FPuerts.NodeJS.Complete)\n[![Puerts.QuickJS.Complete](https:\u002F\u002Fimg.shields.io\u002Fnuget\u002Fv\u002FPuerts.QuickJS.Complete.svg?label=Puerts.QuickJS)](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FPuerts.QuickJS.Complete)\n[![Puerts.Lua.Complete](https:\u002F\u002Fimg.shields.io\u002Fnuget\u002Fv\u002FPuerts.Lua.Complete.svg?label=Puerts.Lua)](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FPuerts.Lua.Complete)\n[![Puerts.Python.Complete](https:\u002F\u002Fimg.shields.io\u002Fnuget\u002Fv\u002FPuerts.Python.Complete.svg?label=Puerts.Python)](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FPuerts.Python.Complete)\n\n[跳转中文](#what---普洱ts是什么)\n\n## WHAT is PuerTS?\n \n`PuerTS` is a **multi-language scripting solution** for Unity\u002FUnreal\u002FDotNet.\n\n* 🌐 **Multi-Language Support (Unity 3.0 New!)**: JavaScript\u002FTypeScript, **Lua**, and **Python** — use the language your team is most productive in, or even mix them in one project. *(Unreal currently supports JavaScript\u002FTypeScript only.)*\n* 🚀 Provides high-performance script runtimes with seamless C#\u002FC++ interop.\n* 📝 TypeScript declaration generation for type-safe access to host engine APIs.\n\n## WHY should I use PuerTS?\n\n* **Choose your language (Unity)**: PuerTS 3.0 introduces a unified `ScriptEnv` architecture — write game logic in TypeScript, Lua, or Python with a consistent C# bridging API. No more one-size-fits-all.\n* **Massive ecosystem access**: leverage npm, LuaRocks, or PyPI packages alongside professional game engines to accelerate development.\n* **Type safety when you want it**: TypeScript's static type checking significantly improves code robustness, while Lua and Python offer rapid prototyping flexibility.\n* **High efficiency**: full-engine, cross-platform reflection calls — zero boilerplate for C++\u002FC# interop.\n* **High performance**: static wrapper generation for performance-critical paths, across all supported languages.\n* **Talented WebGL Support**: massive advantage in performance and dev efficiency, even faster than pure C# in some cases.\n\n## Quick Start (Unity)\n\nAll three languages share the same `ScriptEnv` API — just swap the `Backend`:\n\n**JavaScript \u002F TypeScript**\n\n```csharp\nusing Puerts;\nusing UnityEngine;\n\nvoid Start() {\n    var env = new ScriptEnv(new BackendV8());\n    env.Eval(@\"\n        const Vector3 = CS.UnityEngine.Vector3;\n        const Debug = CS.UnityEngine.Debug;\n        let pos = new Vector3(1, 2, 3);\n        Debug.Log('Hello from JS! pos = ' + pos);\n    \");\n    env.Dispose();\n}\n```\n\n**Lua**\n\n```csharp\nusing Puerts;\nusing UnityEngine;\n\nvoid Start() {\n    var env = new ScriptEnv(new BackendLua());\n    env.Eval(@\"\n        local CS = require('csharp')\n        local Vector3 = CS.UnityEngine.Vector3\n        local Debug = CS.UnityEngine.Debug\n        local pos = Vector3(1, 2, 3)\n        Debug.Log('Hello from Lua! pos = ' .. pos:ToString())\n    \");\n    env.Dispose();\n}\n```\n\n**Python**\n\n```csharp\nusing Puerts;\nusing UnityEngine;\n\nvoid Start() {\n    var env = new ScriptEnv(new BackendPython());\n    env.Eval(@\"\nexec('''\nimport UnityEngine.Vector3 as Vector3\nimport UnityEngine.Debug as Debug\npos = Vector3(1.0, 2.0, 3.0)\nDebug.Log('Hello from Python! pos = ' + pos.ToString())\n''')\n\");\n    env.Dispose();\n}\n```\n\n> 💡 Three languages, one API surface. Each example creates a `Vector3`, then calls `Debug.Log` — real C# interop in just a few lines.\n\n## Puerts.AI (Unity Only)\n\nBuilt on top of PuerTS, **Puerts.AI** brings AI capabilities directly into Unity — both in the Editor and at game runtime.\n\n### Unity Editor Assistant\n\nPuerts.AI includes a ready-to-use **Unity Editor Assistant** that lets you control the Unity Editor with natural language. For example:\n\n- *\"Build a medieval castle scene using basic meshes\"* — AI creates GameObjects, adjusts Transforms, assigns materials\n- *\"Analyze puerts-related logs\"* — AI filters and summarizes logs intelligently\n- *\"Check for missing scripts in the current scene\"* — AI traverses all GameObjects and reports issues\n\n**Any C# API is callable** — the AI generates scripts that run in the PuerTS environment with full access to `UnityEngine.*` and `UnityEditor.*`.\n\nThe Editor Assistant comes in two versions:\n\n| | Agent Version (Built-in) | MCP Version (External) |\n|:---|:---|:---|\n| **How it works** | Chat directly inside a Unity Editor window | Connect from Cursor, Windsurf, Claude Desktop, or any MCP-compatible AI tool |\n| **Speed** | ⚡ Faster — no network round-trips | Communicates via HTTP\u002FSSE |\n| **Best for** | Scene building, inspections, quick prototyping | Vibe coding workflows — AI edits code while controlling Unity to verify results |\n\n**What makes Puerts MCP different from other Unity MCP solutions?**\n\n- **No separate process** — the MCP server runs directly inside the Unity process, no extra services to launch\n- **Single tool, on-demand builtins** — instead of registering dozens of tools upfront, it exposes only one tool; builtin modules are loaded on demand, saving context tokens while remaining equally powerful\n- **Extensible via builtins & skills** — add new capabilities by dropping files into the resource directory, no code changes needed\n\n### Puerts.Agent Framework\n\nThe Editor Assistant above is built with **Puerts.Agent** — an open, extensible LLM Agent framework. But it's not just for the editor — **agents can also run in game runtime**, opening up gameplay possibilities:\n\n- 🎮 **Smart NPC Demo** — Each NPC has its own LLM Agent instance and personality-driven system-prompt. NPCs generate truly dynamic dialogue based on player behavior and game state, sense their surroundings via C# APIs, and form personalized interactions through conversation memory. ([SmartNPCDemo](https:\u002F\u002Fgithub.com\u002Fchexiongsheng\u002FSmartNPCDemo))\n- 🧩 **Maze Runner Demo** — An AI that autonomously navigates a 3D maze by taking screenshots to observe the environment, reasoning about viable paths, executing movement commands, and verifying results — all powered by just two builtin modules and a system-prompt.([MazeRunnerDemo](https:\u002F\u002Fgithub.com\u002Fchexiongsheng\u002FMazeRunnerDemo))\n\nBuild your own agent by creating a simple resource directory:\n\n```\nResources\u002Fmy-agent\u002F\n├── system-prompt.md.txt      # Who the AI is and how it behaves\n├── skills\u002F                   # Domain knowledge documents (loaded on demand)\n└── builtins\u002F                 # Executable helper modules\n```\n\n## HOW can I start to use PuerTS\n[Documentation](https:\u002F\u002Fpuerts.github.io\u002Fen)\n\n---\n\n## FAQ\n\n* [general faq](doc\u002Ffaq.md)\n* [unreal faq](doc\u002Funreal\u002Fen\u002Ffaq.md)\n* [unity faq](doc\u002Funity\u002Fen\u002Ffaq.md)\n\n## How to Install\n\n* [unreal](doc\u002Funreal\u002Fen\u002Finstall.md)\n* [unity](doc\u002Funity\u002Fen\u002Finstall.md)\n\n### Changelog\n\n* [unreal](doc\u002Funreal\u002Fen\u002Fchangelog.md)\n* [unity](unity\u002FAssets\u002Fcore\u002Fupm\u002Fchangelog.md)\n\n### Known issues\n\n* [unreal](doc\u002Funreal\u002Fen\u002Fbugs.md)\n* [unity](doc\u002Funity\u002Fen\u002Fbugs.md)\n\n---\n\n## Select Script Backend\n\nPuerTS supports multiple script backends. For **JavaScript\u002FTypeScript**, choose from V8, QuickJS, or Node.js. PuerTS 3.0 also adds **Lua** and **Python** as first-class backends.\n\n### JavaScript Backends\n\n* V8 (default): Generally excellent performance, moderate code size, only includes the implementation of the ECMAScript specification, does not include Node.js API or browser API.\n\n* QuickJS: Performance is not as good as V8, does not support debugging, but has a small code size, suitable for scenarios where code size is critical.\n\n* Node.js: Supports Node.js API (OpenSSL-related APIs are not supported on Unreal Engine's mobile platform), but has a larger code size.\n\n| JS Backend | Node API | Performance | Code Size | Debugging | Notes |\n| --- | --- | --- | --- | --- | --- |\n| V8 | ❌ | `*****` | `***` | ✔️ | |\n| QuickJS | ❌ | `**` | `*` | ❌ | |\n| Node.js | ✔️ | `*****` | `*****` | ✔️ | OpenSSL may be disabled |\n\n### Additional Language Backends (Unity 3.0 New!)\n\n> **Note**: Lua and Python backends are currently available for **Unity only**. Unreal Engine still supports JavaScript\u002FTypeScript exclusively.\n\n| Backend | Language | Performance | Platform Support | Notes |\n| --- | --- | --- | --- | --- |\n| Lua | Lua 5.4 | `*****` | All platforms | Ideal for teams already using Lua |\n| Python | CPython | `***` | Desktop only | Great for AI\u002FML integration & tooling |\n\n## Avaliable on these Engine\n\n* unreal engine 4.22 ~ latest\n\n* unity 5 ~ latest\n\n* Any .net project\n\n## Available on these Platform\n\nPuerTS's core code supports all platforms supported by the game engines, but each script backend has its own platform requirements:\n\n|  | Windows | Mac | Linux | Android | iOS | H5\u002FMini Games |\n| --- | --- | --- | --- | --- | --- | --- |\n| V8 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❌ |\n| Nodejs | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❌ |\n| Quickjs | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Webgl | ❌ | ❌ | ❌ | ❌ | ❌ | ✔️ |\n| Lua | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Python | ✔️ | ✔️ | ✔️ | ❌ | ❌ | ❌ |\n\nNote 1: Only V8, Nodejs, and Quickjs backends are available for Unreal. Unity supports all backends listed above.\nNote 2: Although the Webgl backend only supports H5\u002FMini Games, its scripts run in the native JS VM of the web environment, which typically delivers higher performance (e.g., JIT support in iOS Mini Games). It also provides first-class language benefits such as convenient debugging and profiling.\nNote 3: For JavaScript, different platforms can use different JS backends — e.g., V8 for mobile apps and Webgl for H5 — achieving full platform coverage with optimal performance.\n\n## Ask for help\n\n[Github Discussion](https:\u002F\u002Fgithub.com\u002FTencent\u002Fpuerts\u002Fdiscussions)\n\n------\n\n## WHAT - 普洱TS是什么?\nPuerTS 是 Unity\u002FUnreal\u002FDotnet 下的**多语言脚本编程解决方案**。\n\n* 🌐 **多语言支持（Unity 3.0 新特性！）**：JavaScript\u002FTypeScript、**Lua**、**Python** 三大语言开箱即用——团队擅长什么就用什么，同一个项目里甚至可以混用。*（Unreal 目前仅支持 JavaScript\u002FTypeScript。）*\n* 🚀 提供高性能脚本运行时，与 C#\u002FC++ 无缝互操作。\n* 📝 提供 TypeScript 声明文件生成能力，类型安全地访问宿主引擎 API。\n\n\n## WHY - 为什么我该用普洱TS?\n\n* **自由选择语言（Unity）**：PuerTS 3.0 引入了统一的 `ScriptEnv` 架构——用 TypeScript、Lua 或 Python 编写游戏逻辑，享受一致的 C# 桥接 API，不再被某一种脚本语言绑定。\n* **海量生态随手可用**：npm、LuaRocks、PyPI 的海量包 + 专业游戏引擎的渲染能力，加速开发效率。\n* **按需选择类型安全**：TypeScript 的静态类型检查显著提升代码健壮性；Lua 和 Python 则提供快速原型验证的灵活性。\n* **高效**：全引擎，全平台支持反射调用，无需额外步骤即可与宿主 C++\u002FC# 通信。\n* **高性能**：全引擎，全平台支持生成静态调用桥梁，所有支持的语言都兼顾了高性能场景。\n* **WebGL 平台天生优势**：相比其他脚本方案，PuerTS 在 WebGL 平台性能和效率上都有极大提升，极限情况甚至比纯 C# 更快。\n\n## 快速上手（Unity）\n\n三种语言共享同一套 `ScriptEnv` API，只需切换 `Backend`：\n\n**JavaScript \u002F TypeScript**\n\n```csharp\nusing Puerts;\nusing UnityEngine;\n\nvoid Start() {\n    var env = new ScriptEnv(new BackendV8());\n    env.Eval(@\"\n        const Vector3 = CS.UnityEngine.Vector3;\n        const Debug = CS.UnityEngine.Debug;\n        let pos = new Vector3(1, 2, 3);\n        Debug.Log('Hello from JS! pos = ' + pos);\n    \");\n    env.Dispose();\n}\n```\n\n**Lua**\n\n```csharp\nusing Puerts;\nusing UnityEngine;\n\nvoid Start() {\n    var env = new ScriptEnv(new BackendLua());\n    env.Eval(@\"\n        local CS = require('csharp')\n        local Vector3 = CS.UnityEngine.Vector3\n        local Debug = CS.UnityEngine.Debug\n        local pos = Vector3(1, 2, 3)\n        Debug.Log('Hello from Lua! pos = ' .. pos:ToString())\n    \");\n    env.Dispose();\n}\n```\n\n**Python**\n\n```csharp\nusing Puerts;\nusing UnityEngine;\n\nvoid Start() {\n    var env = new ScriptEnv(new BackendPython());\n    env.Eval(@\"\nexec('''\nimport UnityEngine.Vector3 as Vector3\nimport UnityEngine.Debug as Debug\npos = Vector3(1.0, 2.0, 3.0)\nDebug.Log('Hello from Python! pos = ' + pos.ToString())\n''')\n\");\n    env.Dispose();\n}\n```\n\n> 💡 三种语言，同一套 API。每个示例都创建了一个 `Vector3`，然后调用 `Debug.Log` ——短短几行代码即可实现真正的 C# 互操作。\n\n## Puerts.AI（仅 Unity）\n\n基于 PuerTS 构建的 **Puerts.AI**，将 AI 能力直接带入 Unity——无论是编辑器还是游戏运行时。\n\n### Unity 编辑器助手\n\nPuerts.AI 内置了一个开箱即用的 **Unity 编辑器助手**，让你用自然语言操控 Unity 编辑器。例如：\n\n- *\"用基础 Mesh 搭建一座中世纪城堡场景\"* —— AI 自动创建 GameObject、调整 Transform、设置材质\n- *\"分析下 puerts 相关的日志\"* —— AI 智能过滤并总结日志\n- *\"检查当前场景有没有脚本丢失\"* —— AI 遍历所有 GameObject 并报告问题\n\n**凡是 C# 能调用的，AI 都能做到**——AI 生成的脚本运行在 PuerTS 环境中，可直接访问 `UnityEngine.*` 和 `UnityEditor.*` 的完整 API。\n\n编辑器助手有两个版本：\n\n| | Agent 版（内置） | MCP 版（外接） |\n|:---|:---|:---|\n| **使用方式** | 在 Unity 编辑器窗口内直接对话 | 从 Cursor、Windsurf、Claude Desktop 等支持 MCP 协议的 AI 工具接入 |\n| **速度** | ⚡ 更快——没有网络往返 | 通过 HTTP\u002FSSE 通信 |\n| **适合场景** | 场景搭建、日常检查、快速原型 | Vibe coding 工作流——AI 一边改代码一边操控 Unity 验证效果 |\n\n**Puerts MCP 与市面上其他 Unity MCP 方案有何不同？**\n\n- **无需额外启动进程** —— MCP Server 直接跑在 Unity 进程内，不用另起服务\n- **单工具 + 按需加载 builtin** —— 不像其他方案预注册几十个工具，Puerts MCP 只暴露一个工具，builtin 模块按需加载，更省上下文 token，但功能同样强大\n- **通过 builtin 和 skill 机制拓展** —— 只需往资源目录里放文件就能添加新能力，无需改代码\n\n### Puerts.Agent 框架\n\n上面的编辑器助手就是用 **Puerts.Agent** 开发的——一个开放、可扩展的 LLM Agent 框架。它不仅能用于编辑器，**还能跑在游戏运行时环境中**，为 gameplay 玩法开发打开全新可能：\n\n- 🎮 **智能 NPC Demo** —— 每个 NPC 拥有独立的 LLM Agent 实例和个性化 system-prompt。NPC 能根据玩家行为和游戏状态生成真正动态的对话，通过 C# 接口感知周围环境，并基于对话历史形成个性化的交互体验。（[SmartNPCDemo](https:\u002F\u002Fgithub.com\u002Fchexiongsheng\u002FSmartNPCDemo)）\n- 🧩 **迷宫 AI Demo** —— AI 自主走迷宫的 Demo，展示 Agent 通过截屏观察 + 工具调用来探索 3D 迷宫。AI 截屏观察当前视野、推理可行路径、执行移动指令、再截屏验证结果——完全自主完成，整个实现仅用了两个 builtin 模块和一段 system-prompt。（[MazeRunnerDemo](https:\u002F\u002Fgithub.com\u002Fchexiongsheng\u002FMazeRunnerDemo)）\n\n构建你自己的 Agent，只需创建一个简单的资源目录：\n\n```\nResources\u002Fmy-agent\u002F\n├── system-prompt.md.txt      # 告诉 AI 它是谁、该怎么做\n├── skills\u002F                   # 领域知识文档（按需加载）\n└── builtins\u002F                 # 可执行的辅助模块\n```\n\n## HOW - 我该怎么开始\n\n* [官方文档](https:\u002F\u002Fpuerts.github.io)\n\n---\n\n\n## 常见问题\n\n* [通用 faq](doc\u002Ffaq.md)\n* [unreal faq](doc\u002Funreal\u002Fzhcn\u002Ffaq.md)\n* [unity faq](doc\u002Funity\u002Fzhcn\u002Ffaq.md)\n\n## 最新版本安装\n\n* [unreal](doc\u002Funreal\u002Fzhcn\u002Finstall.md)\n* [unity](doc\u002Funity\u002Fzhcn\u002Finstall.md)\n\n### 改动日志\n\n* [unreal](doc\u002Funreal\u002Fzhcn\u002Fchangelog.md)\n* [unity](unity\u002FAssets\u002Fcore\u002Fupm\u002Fchangelog-hans.md)\n\n### 已知问题与解决办法\n\n* [unreal](doc\u002Funreal\u002Fzhcn\u002Fbugs.md)\n* [unity](doc\u002Funity\u002Fzhcn\u002Fbugs.md)\n\n---\n\n## 脚本后端选择\n\nPuerTS 支持多种脚本后端。**JavaScript\u002FTypeScript** 可选 V8、QuickJS、Node.js；3.0 新增 **Lua** 和 **Python** 作为一等公民后端。\n\n### JavaScript 后端\n\n* V8（默认）：综合比较优秀，高性能，代码体积适中，仅包含 ECMAScript 规范的实现，不包含 Node.js API、浏览器 API。\n\n* QuickJS：性能不如 V8，不支持调试，但代码体积小，适用于包体大小敏感的场景。\n\n* Node.js：支持 Node.js API（Unreal Engine 移动平台下不支持 OpenSSL 相关 API），代码体积较大。\n\n| JS 后端 | Node API | 性能 | 代码体积 | 调试 | 补充 |\n| --- | --- | --- | --- | --- | --- |\n| V8 | ❌ | `*****` | `***` | ✔️ | |\n| QuickJS | ❌ | `**` | `*` | ❌ | |\n| Node.js | ✔️ | `*****` | `*****` | ✔️ | OpenSSL 可能被禁用 |\n\n### 新增语言后端（Unity 3.0 新特性！）\n\n> **注意**：Lua 和 Python 后端目前**仅在 Unity 版本**中可用，Unreal Engine 仍仅支持 JavaScript\u002FTypeScript。\n\n| 后端 | 语言 | 性能 | 平台支持 | 补充 |\n| --- | --- | --- | --- | --- |\n| Lua | Lua 5.4 | `*****` | 全平台 | 适合已有 Lua 技术栈的团队 |\n| Python | CPython | `***` | 桌面平台 | 适合 AI\u002FML 集成与工具链开发 |\n\n## 可用引擎\n\n* unreal engine 4.22 ~ latest\n\n* unity 5 ~ latest\n\n* 任意.net环境\n\n## 可用平台\n\nPuerTS的核心代码支持游戏引擎支持的所有平台，但每个脚本后端有其特有的平台要求：\n\n|  | Window | Mac | Linux | Android | IOS | H5\u002F小游戏|\n| --- | --- | --- | --- | --- | --- |--- |\n| V8 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❌ |\n| Nodejs  | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❌ |\n| Quickjs  | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Webgl  | ❌ | ❌ | ❌ | ❌ | ❌  | ✔️ |\n| Lua   | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |\n| Python  | ✔️ | ✔️ | ✔️ | ❌ | ❌ | ❌ |\n\n注1： Unreal下只有V8、Nodejs、Quickjs三种后端，Unity支持以上所有脚本后端\n注2： Webgl后端虽然只支持H5\u002F小游戏，但它的脚本是运行在web环境的原生js虚拟机里，通常性能更高（比如在ios小游戏环境里支持jit），也能享受first class语言诸如方便调试，profiler等好处\n注3： 对于js，不同平台可以选不同的js脚本后端，比如app选v8，H5平台选Webgl实现全平台支持且性能最优\n\n## 技术支持\n\n[Github Discussion](https:\u002F\u002Fgithub.com\u002FTencent\u002Fpuerts\u002Fdiscussions)\n\nQQ群：942696334\n\nUE4专属群：689643903\n\n## 开发博客\n[知乎专栏](https:\u002F\u002Fwww.zhihu.com\u002Fcolumn\u002Fc_1355534112468402176)\n","Puerts 是一个为 Unity 和 Unreal Engine 游戏引擎提供 TypeScript、JavaScript、Lua、Python 等多语言脚本支持的轻量级绑定框架。它通过高性能 JS 引擎（V8\u002FQuickJS）、Lua 解释器及 Python 运行时，实现与 C# 或 C++ 的低开销双向互调，并自动生成 TypeScript 类型声明，保障类型安全。支持 Unity（全语言）和 Unreal（TS\u002FJS）双平台，适用于需要热更新、快速原型验证、跨团队协作或复用前端\u002F脚本生态的游戏开发场景。",2,"2026-11-24 04:50:32","top_language"]