Skip to content
Unity · open-source plugin

XPLOIT Game UI

Build your game's UI with HTML, CSS and JavaScript, and render it on the GPU inside Unity. It is not an embedded browser: a small runtime paints the page straight into a texture, and costs nothing while nothing on screen moves.

Apache-2.0 No Chromium, no WebView SDK Prebuilt, nothing to compile

How and why I built this
4.61,556 votes

The plugin ships as a Unity package tarball (.tgz) attached to the latest GitHub release. Requires Unity 6000.2 or newer on Windows 11 x64, with the graphics API set to Direct3D 12.

What it is

Write UI as a web page

Menus, HUDs, inventories and settings screens in plain HTML, CSS and JavaScript. Edit the CSS, reload, see the change — no recompile, no reclicking.

Not a browser

No Chromium, no second process. lexbor parses, V8 runs the script, Yoga lays out flexbox and Skia paints straight into a Unity texture on the game's own D3D12 device.

Free when nothing moves

A frame is produced only when something changed, and only the changed rectangle is redrawn. An idle menu drops from 22.7 ms per frame to zero.

Quick start
  1. 01

    Install the package

    Download com.xploit.game_ui-<version>.tgz from the latest GitHub release, then in Unity: Window → Package Manager → + → Install package from tarball. The native runtime is prebuilt inside it.

  2. 02

    Put your page under StreamingAssets

    For example Assets/StreamingAssets/UI/HUD/index.html with its CSS and JS next to it. Nothing outside that root is reachable from the page.

  3. 03

    Add the view

    Put a RawImage on a Canvas, add an HtmlView component next to it and set its Path to UI/HUD/index.html. Add WebInput for mouse and keyboard.

  4. 04

    Talk to it from C#

    Four calls: Load, On, Send and RegisterFunction. The page answers with Unity.emit, Unity.on and Unity.call.

FAQ
Is XPLOIT Game UI free?
Yes. It is open source under the Apache-2.0 licence, and every bundled dependency is permissively licensed, so it can ship in a commercial game.
Which Unity versions and platforms does it support?
Unity 6000.2 or newer on Windows 11 x64 with Direct3D 12. On any other graphics API it falls back to a CPU rasteriser, which works but costs more.
Does the page have network or file access?
No. There is no fetch, XMLHttpRequest, WebSocket or dynamic import, and every path resolves inside the UI root. The only native surface the page can reach is the Unity object and the C# functions you register.
What CSS is missing?
Grid, float, calc(), custom properties, @media, ::before/::after and :nth-child() are not supported yet, nor are table, select, canvas, video and iframe. The full support matrix is in the repository docs.
Rovniy/xploit_game_ui HTML / CSS support matrix Report a bug

Newsletter

Occasional notes on engineering, game tech, and new tools — no spam, unsubscribe anytime.

Andrei Rovnyi

Engineering manager, founder, and software developer building web platforms, game systems, real-time services, and automation tools. 15 years of shipped work — currently at Gaijin.net.

Get in Touch

Building an MVP, shipping a game feature, or automating a team workflow? Open source or paid — let's talk.

Contact Me
© 2020-2026 XPLOIT FZE. All trademarks, names and logos belong to their respective copyright holders.