添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Logo

WHAT is PuerTS (PUER Typescript)?

PuerTS is a TypeScript programming solution in Unity/Unreal/DotNet.

  • provides a JavaScript Runtime.
  • allows TypeScript to access the host engine with the help of TypeScript declarations generation.
  • WHY should I use PuerTS?

  • Facilitates game-building processes by combining JavaScript/Node.js ecosystem and professional game engines
  • In contrast to Lua script, TypeScript supports static type checking, which significantly improves code robustness and maintainability.
  • High efficiency: supports reflection call throughout the host - no extra steps needed for interop with C++/C#.
  • High performance: supports static wrapper generation - handles complex scenes with high-performance demands.
  • Talented WebGL Support: massive advantage in performance and dev efficiency compared to Lua, even faster than pure C# in some cases.
  • HOW can I start to use PuerTS

    Documentation

  • general faq
  • unreal faq
  • unity faq
  • How to Install

  • unreal
  • unity
  • Changelog

  • unreal
  • unity
  • Known issues

  • unreal
  • unity
  • Select Script Engine

    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.

  • JavaScript生态有众多的库和工具链,结合专业商业引擎的渲染能力,快速打造游戏
  • 相比游戏领域常用的lua脚本,TypeScript的静态类型检查有助于编写更健壮,可维护性更好的程序
  • 高效:全引擎,全平台支持反射调用,无需额外步骤即可与宿主C++/C#通信。
  • 高性能:全引擎,全平台支持生成静态调用桥梁,兼顾了高性能的场景。
  • WebGL平台下的天生优势:相比Lua脚本在WebGL版本的表现,PuerTS在性能和效率上都有极大提升,目前极限情况甚至比C#更快。
  • HOW - 我该怎么开始

  • 通用 faq
  • unreal faq
  • unity faq
  • 最新版本安装

  • unreal
  • unity
  • unreal
  • unity
  • 已知问题与解决办法

  • unreal
  • unity
  • 脚本引擎选择

    目前puerts支持三种脚本引擎:v8、quickjs、nodejs,选择合适你的那个。

    v8(默认):综合比较优秀,高性能,代码体积适中,仅包含ecmascript规范的实现,不包含nodejs api、浏览器 api

    quickjs: 性能不如v8,不支持调试,但代码体积小,适用于代码段大小敏感型业务

    nodejs:支持nodejs api(unreal engine的移动平台下不支持openssl相关api),代码体积较大