PuerTS
is a TypeScript programming solution in Unity/Unreal/DotNet.
Currently puerts supports three script engines: v8, quickjs, nodejs, choose the one that suits you.
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.
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.
Node.js: Supports Node.js API (OpenSSL-related APIs are not supported on Unreal Engine's mobile platform), but has a larger code size.
Script Engine | Node api | Performance | Code Size | Debugging | Notes |
---|---|---|---|---|---|
V8 | ❌ | ***** |
*** |
✔️ | |
QuickJS | ❌ | ** |
* |
❌ | |
Node.js | ✔️ | ***** |
***** |
✔️ | OpenSSL may be disabled |
unreal engine 4.22 ~ latest
unity 5 ~ latest
Any .net project
PuerTS是 Unity/Unreal/Dotnet 下的TypeScript编程解决方案
目前puerts支持三种脚本引擎:v8、quickjs、nodejs,选择合适你的那个。
v8(默认):综合比较优秀,高性能,代码体积适中,仅包含ecmascript规范的实现,不包含nodejs api、浏览器 api
quickjs: 性能不如v8,不支持调试,但代码体积小,适用于代码段大小敏感型业务
nodejs:支持nodejs api(unreal engine的移动平台下不支持openssl相关api),代码体积较大
脚本引擎 | Node api | 性能 | 代码体积 | 调试 | 补充 |
---|---|---|---|---|---|
V8 | ❌ | ***** |
*** |
✔️ | |
QuickJS | ❌ | ** |
* |
❌ | |
Node.js | ✔️ | ***** |
***** |
✔️ | OpenSSL 可能被禁用 |
unreal engine 4.22 ~ latest
unity 5 ~ latest
任意.net环境
QQ群:942696334
UE4专属群:689643903