Live patching & C# hot-reload

Change C# without restarting the game.

Stopping Play Mode for a one-line fix throws away the match and the bug you finally reproduced. Satura Space patches edited method bodies into the running session instead.

The cost of a domain reload

The usual loop is: stop Play Mode, compile, reload the domain, press Play, replay your way back. That's a minute or two on a mid-size project, and an agent that writes five fixes pays it five times.

What Satura Space does instead

With hot-reload armed, the edited script compiles and its method bodies are patched into the running Mono domain. Unity stays in Play Mode, nothing is torn down, and the new code runs the next time the method is called.

Tune a jump curve and watch it change in a game that never stopped.

What it covers

  • Method bodies in Assembly-CSharp, your asmdefs and embedded packages.
  • Edits by you in the editor or by an agent writing files.

What still needs a normal recompile

  • New fields, methods and types. Live objects were built to the old layout.
  • Changed signatures. The patch replaces a body, not a declaration.
  • A patched Awake or Start only affects objects spawned afterwards.
The honest limit: hot-reload iterates on logic you have, not new API surface. Most of an agent's edit-verify cycle is the first kind.

Patching the live scene, not just the code

With unity_exec on the Unity MCP server an agent runs C# in the live session to spawn objects, change values and read state, through Roslyn in memory with no recompile or domain reload. The demo above drops 180 cubes into a game that never paused.

The specifics.

Unity version

Unity 6Mono scripting backend. Tested day to day on 6000.6 and 6000.3.

Granularity

Method bodiesExisting methods in your own assemblies. Signature and type changes recompile.

State

Fully preservedNo domain reload, no Play Mode exit. Scene objects and connections survive.

Agent control

hot_reload=trueOn unity_open_scene: an agent arms the same toggle the Player panel exposes.

Straight answers

Hot-reload questions.

What exactly can hot-reload change in Unity?

Method bodies, during Play Mode, on Unity 6 (Mono), in Assembly-CSharp, asmdefs and embedded packages. New fields, methods and types need a normal recompile.

Does hot-reload work with IL2CPP?

No, it needs Mono, which the editor uses. Your IL2CPP player builds are unaffected.

Related

Stop restarting to test one line.

Patch the running game, keep the state, and let your agents do the same.

7-day free trial (no card required)macOS & Windows