Skip to content

u3d-resources/OneJS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

JavaScript for Unity

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 86.9%
  • JavaScript 13.1%