Hot Patch
Stop waiting on domain reloads. Edit C# in your IDE during Play Mode and feel the change on the next call - while your scene, timers, and debug setup stay alive.
Milliseconds to iterate. Hours of state preserved.
From keystroke to gameplay
Save in your IDE. Hot Patch compiles and redirects the live method. Your running scene picks up the change instantly.
Watch Hot Patch in action
See C# edits apply live. No domain reload, no lost Play Mode state.
No More Waiting
Update your C# methods instantly while the game is running.
Built for faster iteration
Everything you need to keep Play Mode alive while you fix, tune, and prototype.
Edit any function
If you have the C# code, Hot Patch can patch it instantly. Works with Rider, Visual Studio, VS Code, or any editor that saves files.
Easy setup
Import and run. No project changes, attributes, or build steps required to get started.
Works seamlessly
Changes apply without a domain reload. The game keeps running, static state, timers, and scene objects stay intact.
Fast, even on large projects
Changes apply in milliseconds. Roslyn compiles only what changed, not your entire solution.
Battle-tested
Built by game devs, for game devs, an Editor-first workflow designed for day-to-day Unity iteration.
Get Started In Just a Few Minutes…
1. Download
Download and import the Unity package
2. Start
Open Tools → DivinityCodes → Hot Patch and press Start
3. Run
Enter Play Mode, edit C#, save and enjoy instant patches
Why Hot Patch?¶
Unity's default workflow interrupts you on every script change. A small fix can cost 30-60 seconds of compile time, and a domain reload wipes the Play Mode state you were debugging.
Without Hot Patch
- Save → wait for compile → domain reload
- Lose running game state on every edit
- Re-test from scratch after each change
With Hot Patch
- Save → patch applies in milliseconds
- Keep Play Mode alive while you iterate
- Re-invoke the changed method and verify instantly
How it works¶
- Enter Play Mode with Hot Patch enabled.
- Hot Patch blocks Unity's automatic script refresh so saves do not trigger a domain reload.
- When you save a
.csfile, Hot Patch compiles only what changed with Roslyn and redirects method execution with Harmony. - The next time your code runs,
Update, a button handler, a utility method, it uses the new logic.
No external server. No project setup. Import the package, open the window, press Start, and edit.
Requirements at a glance¶
| Requirement | Details |
|---|---|
| Unity Editor | Mono scripting backend |
| Scope | Play Mode in the Editor |
| Scripts | Runtime code under Assets/ (not Editor/) |
| Not supported | IL2CPP player builds / shipped binaries |
See Requirements for the full list, or jump to Features to learn what edits are supported.
