Skip to main content

ZenTS DocsAlpha

Zero-config · Full C# interop · TypeScript / JavaScript on QuickJS

Mono · 已完成Il2Cpp · 已完成

Unity 2021.3 / 2022.3 / 6000 · Tuanjie · QuickJS · Editor Win/macOS · Player: Win64 / Android / iOS / WebGL / Mini Games / HarmonyOS

Easier · zero-config

Declarative GetFunction / [JsMarshalAs], lazy CSharp loading; no per-type Wrap allowlist. Same product mental model as ZLua.

🟦

TypeScript first-class

Official TsProject workflow, csharp: typings, Play-mode gate; runtime still runs emitted ES modules on QuickJS.

📦

Il2Cpp-ready · dual runtime

Editor Mono for iteration; Player Il2Cpp C++ bridge with signature-merged stubs and ByVal / Registry marshaling.

Bidirectional calls at a glance

// Bootstrap
JsAppDomain.Initialize(LoadJsModule);

void Start()
{
    var add = JsAppDomain.GetFunction<Func<int, int, int>>("app", "add");
    Debug.Log(add(10, 20)); // 30
}
// JsScripts/app.js  (canonical: "app")
export function add(a, b) {
  return a + b;
}