finds.dev

ialex32x/unity-jsb

It brings Javascript runtime capability to Unity3D by integrating QuickJS.

View on GitHub

★ 338CMITupdated Sep 2023

// the take

unity-jsb embeds QuickJS (with an experimental V8 backend on Windows x64) into Unity3D so you can write gameplay code in TypeScript instead of C#. It's aimed at Unity teams who want faster iteration than C# recompiles give you, or who want to expose a scripting layer to non-programmers for things like UI or event logic.

Hotload actually works the way you'd want it to: it swaps the class implementation while keeping the running instance and its fields intact, which is a real iteration-speed win over stopping play mode to recompile C#. TypeScript support is generated automatically from the bound C# types (one-click .d.ts generation), so you get real autocomplete and type checking against the actual Unity API instead of hand-maintained bindings. The Unity integration goes deep rather than being a thin scripting sandbox — JS can implement MonoBehaviour, EditorWindow, CustomEditor, and ScriptableObject directly, and async functions can await both Unity coroutines and C# Tasks through the same `jsb.Yield` mechanism.

No commits since September 2023, over two years, which is a long time for something this tightly coupled to a specific Unity version and native QuickJS/V8 builds — expect friction updating to current Unity LTS releases. Several headline features are shipped as documentation only: JS Worker, C# hotfix, and UIElement support are all explicitly marked UNFINISHED in the README, so don't plan around them. Platform claims are broader than what's actually verified — the README lists Windows/macOS/iOS/Android support but admits it's "only tested on macOS with Unity2020.3 (INTEL)", and the V8 backend (needed for the Chrome DevTools debugger) is Windows x64 only. There's no multi-threading within a single runtime, so any CPU-heavy JS work has to go through the still-unfinished Worker system, and Vector3/Vector2 being by-reference in JS (unlike C#'s value-type semantics) is the kind of subtle mismatch that causes hard-to-trace bugs once a project grows.

We read the README, the directory tree and a key source file in November 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
338
Forks
47
Language
C
License
MIT
Last commit
1 Sep 2023

// nearby

If unity-jsb isn't quite it.

All repos →