GitHunt

openupm

๐Ÿ“„ Docs ยท ๐Ÿ’ฌ Discord


OneJS lets you tap into the full JavaScript ecosystem right inside Unity, so you can build fast, modern UIs with live reload and no browser bloat.

It's free and open-source, but if you're into it and want to support development, consider grabbing the package on the Unity Asset Store. You'll also get lifetime access to our upcoming Game-Ready UI Library.


โœจ Features

  • ๐Ÿงฌ Native UI, no webviews โ€“ bridges straight to UI Toolkit for true in-game performance.
  • โšก Instant iteration โ€“ hit Save, see Unity refresh without domain reloads.
  • ๐Ÿ› ๏ธ Web dev tooling โ€“ TypeScript, JSX/Preact, Tailwind, ESBuild all pre-wired.
  • ๐Ÿ“ฑ Cross-platform โ€“ tested on desktop and mobile targets out of the box.
  • ๐Ÿง  Scriptable โ€“ expose C# safely to JavaScript for mods or rapid prototyping.

๐Ÿ“‹ Requirements

Minimum Notes
๐ŸŽฎ Unity 2021.3 LTS 2022.1+ if you need UI Toolkit Vector API
๐Ÿ“ฆ Packages burst & mathematics auto-installed
๐Ÿ›  Tooling Node โ‰ฅ 18 + TypeScript CLI for build/watch tasks

OneJS.Getting.Started.mp4

๐Ÿš€ Quick Start

Install

You can use any one of the following three methods:

  • Download and import from Asset Store.
  • Unity Package Manager โ†’ Add package by Git URL https://github.com/Singtaa/OneJS.git
  • Clone the repo anywhere on your machine, and use Install package from disk from Package Manager.

Add the prefab

Drag the ScriptEngine prefab into an empty scene and press Play โ–ถ๏ธ. OneJS will scaffold an App/ working directory.

Boot the toolchain

  • Open {ProjectDir}/App with VSCode.
  • Run npm run setup in VSCode's terminal.
  • Use Ctrl + Shift + B or Cmd + Shift + B to start up all 3 watch tasks: esbuild, tailwind, and tsc.

Code something

Edit index.tsx, hit Save, watch Unity live-reload ๐Ÿ”„.

Please visit onejs.com/docs for proper documentation.


๐Ÿค Contributing

Pull requests and issue reports are welcome! Contributing Docs


๐ŸŒ Community & Support

๐Ÿ’ฌ Discord is where it's at! Join the community to ask questions, share your work, and get help.


๐Ÿ“„ License

Distributed under the MIT License.