unity/changelog-hans.md
All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
import())#1540puer.$genericMethod无法获取父类泛型函数的问题 #1417 @danij91这个版本是2.0第一个正式版本。感谢所有参与过2.0内测的朋友。
对升级有疑问的朋友可以参见升级指南
JSObject.Get<T>(string),ExecuteModule也重构改为使用该Get接口Unity本身的Il2cpp backend和我们在2.0版本新做的puerts il2cpp特别优化模式,我们将我们2.0的新模式命名为xIl2cpp modeIResolvableLoader,用于实现node_modules加载与解决 #1270 问题IBuiltinLoadedListener,可以让Loader在内置脚本执行完毕后做一些操作,便于封装第三方Loader。Il2cpp绑定章节与1.x版本不兼容的地方
以下为相比1.4.0的内容
IsByRefLike缺失的错 #1050--jitlessflagCS 和 puer,对应原本的require('csharp')和require('puerts')。PuerTS的require不再建议使用,原有的使用全局require的地方请改成global.CS、global.puer、import 'xxx',抑或是puerts.require。PuerTS的全局require将考虑在1.5版本删除。JsEnv.Backend 并加入了一些GC API. LowMemoryNotification 也移进去了。NodeRunnerExecuteModule处理多级依赖的问题修复。setInterval会引起crash的bug #707--no-browser-globals选项require('puerts').getLastException接口 #629undefined is not a function 或者 cannot read property of undefined等错的问题task.GetAwaiter(...).OnCompleted is not a function的问题 #966export = 导出 #750FastBinding(即会生成static wrapper)、LazyBinding(前面提到的首次调用时反射)、DontBinding(完全不允许JS调用)。例子可以查看仓库中 U2018Compatible.cs