View on Asset Store (opens in new tab)
Package details
- Latest version
- 3.0.0
- Last updated
- First released
- Unity version
- 2022.3.62 or later
- Package size
- 152 KB
- Files
- 27
- Favorites
- 3
- Views in the past week
- 14
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $5.99 on
Keywords
Sakanfar Auto Compiler V2
Sakanfar Auto Compiler instant C# hot patching in Play Mode. No domain reload. Edit code, see results live. Includes Play Mode State Preserver to keep your scene tweaks.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 5
Sakanfar Auto Compiler V2 screenshot 1
About this asset
Updated Asset Store description:
---
**Stop waiting. Start creating.**
**Sakanfar Auto Compiler** is an ultra-fast, in-memory script patching tool designed to completely eliminate Unity's frustrating Domain Reload times during active development.
Whether you are in Edit Mode or actively testing in Play Mode, Sakanfar Auto Compiler allows you to modify your C# methods, tweak math, and adjust logic on the fly. Simply save your script, and your changes are injected directly into your running game's memory in **less than a second** without a progress bar, without breaking your flow, and without losing your game state.
---
## Why choose Sakanfar Auto Compiler?
Unlike heavy, expensive solutions that require massive third-party detouring libraries or proxy-class generation, Sakanfar uses a razor-sharp, lightweight approach. By utilizing unsafe C# and direct native JMP injection (x64/x86), it achieves instant-refresh speeds for standard method modifications with practically zero memory overhead and zero external dependencies.
**Zero Setup Friction:** Ships with its own assembly definitions. On first import, the built-in setup wizard automatically installs the single required dependency (`com.unity.nuget.mono-cecil`) via Package Manager. No manual configuration, no project-wide unsafe code settings, no API Compatibility Level changes.
**Cross-Platform:** Native memory protection APIs for Windows (`VirtualProtect`), macOS, and Linux (`mprotect`).
**Works Everywhere:** Compatible with Unity 2021.2+ including Unity 6. Works with both `.NET Standard 2.1` and `.NET Framework` API levels.
---
## Bonus: The Play Mode State Preserver
Unity notoriously erases all Scene changes the moment you exit Play Mode. **We fixed that.**
With our built-in Preserver, you can move objects, change materials, and tweak lighting while the game is running. Simply **select the customized GameObjects** in your Hierarchy, then exit Play Mode. Sakanfar Auto Compiler captures your changes at the moment you stop, restores them into Edit Mode, and permanently applies them to your scene —all while safely letting physics, player positions, and runtime-only objects reset normally.
Select exactly what you want to keep. Everything else behaves as Unity intended.
---
## What you can hot-patch instantly:
✅ Method body logic and flow control
✅ Math equations and calculations
✅ Local variable usage
✅ Lambda expressions and delegates
## What triggers a safe fallback (no crash, no mystery):
❌ New fields or properties
❌ New classes or structs
❌ Changed method signatures
❌ New interfaces
The tool intelligently detects structural changes, explains exactly why they can't be hot-patched, and waits for a standard Unity compilation. No silent failures, no corrupted assemblies.
---
**Sub-second code refreshes. Zero domain reloads. Zero heavy dependencies. Fully cross-platform.**
From the publisher's Asset Store listing.
Technical details
- Updated marketing copy for v2:
- **Sub-second Code Refreshes:** Instantly patch changes to any method body, logic condition, math equation, or local variable without triggering a Domain Reload. Powered by Unity's native Roslyn compiler (`AssemblyBuilder`) — no legacy `CSharpCodeProvider` dependencies.
- **Zero Heavy Dependencies:** Runs entirely natively with unsafe C# and platform memory APIs. No third-party modding frameworks (like HarmonyLib), no hidden proxy DLLs, no external compiler processes. Ships with its own assembly definitions; works in projects with unsafe code disabled at the project level.
- **Selective Play Mode Preservation:** A built-in workflow that allows you to permanently save specific Hierarchy tweaks made during Play Mode. Press `Ctrl+Alt+S` while objects are selected, or the tool auto-captures your selection when you exit Play Mode. GameObjects are restored into Edit Mode via prefab-based preservation, while physics and runtime state reset normally.
- **Scene View Status Overlay:** A fully customizable, non-intrusive status indicator injected directly into the Scene View so you always know when the compiler is listening, patching, or locked.
- **Smart Fallback:** If you attempt a structural change that memory patching cannot legally support (adding new fields, changing method signatures, adding types), the tool intelligently detects it, logs the specific reason, and waits for a standard Unity compilation. No false positives from constructors or Unity source-generated types.
- **Auto-Setup:** First-run wizard automatically installs the required `com.unity.nuget.mono-cecil` package via Package Manager. No manual dependency hunting.
- **OS Support:** Windows, macOS, and Linux. Uses `VirtualProtect` on Windows, `mprotect` on Unix/macOS.
- **Unity Version:** 2021.2+, including 2022.3 LTS, Unity 6, and newer. Compatible with both `.NET Standard 2.1` and `.NET Framework` API Compatibility Levels.
Compatibility
| Unity version | Built-in | URP | HDRP |
|---|---|---|---|
| 2022.3.62f2 | Compatible | Compatible | Compatible |
As listed on the Asset Store.