OneJS is a Unity package that enables developers to leverage web technologies like React, Typescript, and Tailwind in their Unity projects. It provides a thin DOM layer for Preact, allowing for fast iteration speed and live reload. With OneJS, developers can create high-performance UIs using UI Toolkit and take advantage of features like styled components, runtime CSS, and zero-allocation interop. The package also supports multiple backends, including QuickJS, V8, and NodeJS, and comes with an ESBuild workflow for simplified bundling and npm package support. OneJS is ideal for developers familiar with React and Typescript, and is suitable for Unity projects that require high-performance UI development.
OneJS also enables easy implementation of modding systems, allowing players to create addons and mods for games using TypeScript, JSX, and USS. This feature opens up new possibilities for game development and community engagement.
Overall, OneJS is a powerful tool for Unity developers looking to create high-performance UIs and modding systems using web technologies.
Requirements:
- Unity.Mathematics
- Unity.Burst
- Unity Version 2021.3+ (for stable UI Toolkit)
- Unity Version 2022.1+ (if you need to use UI Toolkit's Vector API)
Platforms:
- Supported on Windows, Mac, iOS, and Android
Feature Highlights:
- Typescript & JSX for UI Development in Unity
- Fast Iteration speed with Live Reload
- Awesome Performance due to 1-to-1 interop between Preact and UI Toolkit
- Tailwind workflow and Compiler support
- Styled Components and Emotion APIs are built-in
- Runtime CSS Load CSS strings dynamically at runtime!
- Zero-Allocation Interop via Puerts optimizations
- Easily swap between 3 backends: QuickJS (small footprint), V8 (high performance), or NodeJS (full ecosystem)
- ESBuild Workflow for simplified bundling and npm package support
- Auto TS Definitions Generation





