Releases: Tencent/puerts
Releases · Tencent/puerts
Unity_v3.0.0,PESAPI_VERSION:11
每个tar.gz解压后是一个package。通过unity的包管理器即可引入。
其中PuerTS_Core_3.0.0.tar.gz是核心包,这个是必须安装的。
其它都是语言/后端引擎扩展,可根据自己需要下载安装。
PuerTS_V8_3.0.0.tar.gz、PuerTS_Nodejs_3.0.0.tar.gz、PuerTS_Quickjs_3.0.0.tar.gz和PuerTS_Webgl_3.0.0.tar.gz都是js语言扩展。
PuerTS_Lua_1.0.0-beta1.tar.gz是lua语言扩展。
PuerTS_Python_1.0.0-beta1.tar.gz是python语言扩展。
各扩展包目前对平台的支持如下:
| Window | Mac | Linux | Android | IOS | Webgl | |
|---|---|---|---|---|---|---|
| PuerTS_V8 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❌ |
| PuerTS_Nodejs | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❌ |
| PuerTS_Quickjs | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| PuerTS_Webgl | ❌ | ❌ | ❌ | ❌ | ❌ | ✔️ |
| PuerTS_Lua | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| PuerTS_Python | ✔️ | ✔️ | ✔️ | ❌ | ❌ | ❌ |
其中PuerTS_Webgl虽然只支持web,但它的脚本是运行在web环境的原生js虚拟机里,通常性能更高(比如在ios小游戏环境里支持jit),也能享受first class语言诸如方便调试,profiler等好处。
中文版本请查看 doc/unity/zhcn/changelog.md
difference between Node.js/Quickjs/V8: wiki
Unity_v2.2.3,ApiLevel:35
[2.2.3] - 2025-11-28
- webgl采用FinalizationRegistry+weakref双重机制保障对象回收 fix #2199
- 修复传一个已经销毁的jsenv的jsobject到一个正常jsenv会导致崩溃的问题
- il2cpp优化下LowMemoryNotification也是可用的
- il2cpp优化和pinvoke版本一系列参数校验不对齐的问题修正
- il2cpp优化版本对于nulable更好的支持
- 解决传bigint给uint参数会崩溃的问题
- 解决虚方法调用没有调用到子类的问题
- 解决非public方法及属性也会导出到js的问题 fix #2241
- il2cpp优化含引用类型的结构体,其引用字段设置后可能被gc的问题 fix #2243
- 反射支持枚举的ref
[2.2.3] - 2025-11-28
- WebGL adopts a dual mechanism of FinalizationRegistry + WeakRef to ensure object collection fix #2199
- Fixed a crash caused by passing a JSObject from a destroyed JS env into a normal JS env
- In the il2cpp-optimized build, LowMemoryNotification is also available
- Fixed a series of parameter validation mismatches between the il2cpp-optimized and P/Invoke versions
- Improved support for nullable types in the il2cpp-optimized version
- Fixed a crash when passing a BigInt to a uint parameter
- Fixed an issue where virtual method calls did not invoke subclass implementations
- Fixed non-public methods and properties being exported to JS fix #2241
- Fixed an issue in the il2cpp-optimized version where reference fields in structs containing reference types could be garbage collected after being set fix #2243
- Reflection now supports enum by ref
difference between Node.js/Quickjs/V8: wiki
Unity_v2.2.2 for android 16kb alignment
中文版本请查看 doc/unity/zhcn/changelog.md
difference between Node.js/Quickjs/V8: wiki