URKit
Native C++ SDK Generator for Unity & Unreal Engine
URKit lets you write mods for Windows x64 Unity games in plain C++. You point it at a game, and it hands you a CMake project that already builds. From there you can find and change game objects, call the game's own methods, hook functions, react to scene changes, and draw an ImGui overlay. It works with both Mono and IL2CPP games. Unreal Engine support is on the way, but it isn't ready yet. See where it stands. Keep these files together in one folder. urk.exe copies the proxy you pick next to the game's executable, and your built mods go in a Mods folder beside it.
Summary extracted from the README.
URKit
URKit lets you write mods for Windows x64 Unity games in plain C++. You point it at a game, and it hands you a CMake project that already builds. From there you can find and change game objects, call the game's own methods, hook functions, react to scene changes, and draw an ImGui overlay. It works with both Mono and IL2CPP games.
Unreal Engine support is on the way, but it isn't ready yet. See where it stands.
What's in a release
urk.exemakes new mod projects, updates existing ones without touching the files you wrote, and installs or injects the loader. Run it with no arguments for the window, or seeurk.exe help.version.dll,winhttp.dll,winmm.dll,dwmapi.dllandmsimg32.dllare the proxy loaders. You only need the one the game actually loads.version.dllis a good first try. If Windows loads its own copy first (some games get a compatibility shim that does), trydwmapi.dll.URKitInjector.dllis the loader for injector mode:urk.exeloads it into the running game instead of placing a proxy next to it.URKitDevBridge.dllis optional. Withurk.exe mcpit lets AI coding assistants build, deploy and inspect your mod.
Keep these files together in one folder. urk.exe copies the proxy you pick
next to the game's executable, and your built mods go in a Mods folder
beside it. Only one proxy should be installed.
Quick start
./urk.exe new --game-exe C:\Games\Example\Example.exe --name MyMod --loader proxy
cd <GameDir>\urk-sdk-output\MyMod\project
cmake --preset clang-debug
cmake --build --preset clang-debug --parallel
URKit works out whether the game is Mono or IL2CPP for you, and
--loader proxy puts version.dll next to the game. The build puts a debug
DLL straight into the game's Mods folder. The same steps are on the
Create page of urk.exe.
You'll need CMake 3.28 or newer, Ninja, and either LLVM/Clang or MSVC (VS 2022
Build Tools or newer). Prefer cl.exe? Use msvc-debug. When you're ready to
share your mod, build with clang-release or msvc-release.
Now start the game and open URKit_logs.log next to its executable. You
should see your mod load. No log file at all usually means the game doesn't
load the loader you picked. Try another proxy on the Loader page, or use
injector mode there.
Unreal Engine (work in progress)
We're working on Unreal support, and honestly it's not ready for real mods yet. Unity has an API we can ask about the game; Unreal doesn't, so URKit has to find everything on its own while the game runs. So far it has been tried on UE 4.27, 5.4 and 5.8 games. Here's where things stand:
| What | Status | Notes |
|---|---|---|
| Finding the engine in a running game | Works | |
Calling game functions, hooking ProcessEvent |
Works | |
| Map load / map change events | Works | |
update() every frame |
Works | |
Typed headers from the game (DumpTypes) |
Works | |
Numbers, objects, structs, FString, FName, FText, TArray |
Works | |
TSet and TMap |
Mostly works | If an edit fails halfway, the container can be left broken |
| Enums by name, soft and weak references, delegates | Works | |
| Sparse delegates, interfaces, lazy pointers | Works | |
| Engines older than 4.25 | Not supported |
If you want to poke at it anyway: put the loader next to the game's
-Win64-Shipping.exe, add this to URKit_config.ini in the same folder,
and play through the maps you care about:
[Unreal]
DumpTypes=1
Then make a project with --backend unreal. The generated
sdk/unreal/README.md explains the rest. If something breaks, an issue with
your URKit_logs.log attached helps a lot.
Learn the API
New to URKit? Start with Getting Started. It walks you through a real mod, from printing your first log line to reading and changing game state.
If you'd rather watch, there's the URKit SDK Tutorial Series on YouTube.
Once you know the basics, the SDK Handbook is the full reference. It covers finding objects, threading rules, hooks, rendering and highlights, caching, and what to check when something doesn't work. Its first chapter is about updating projects, including hand-patched ones and running the updater from a script.
Curious how URKit works inside? Read ARCHITECTURE.md. The AI-assistant server has its own page in docs/DEV_MCP.md.
Building URKit yourself
You'll need the same tools as for a mod project. For the MSVC presets, open a
Developer PowerShell for Visual Studio first so cl.exe can be found. Then,
from the repository root:
cmake --preset msvc-release
cmake --build out/build/msvc-release
clang-release, clang-debug and msvc-debug work too.
Antivirus warnings
The loaders get into a game's process and hook functions there. That's just what mod loaders do, but some antivirus software flags it anyway. A warning on its own doesn't mean a release is malicious.
To stay safe, only download releases from this repository and check the SHA-256 digest published with each one. The binaries are self-signed so you can tell if they were tampered with, but Windows won't trust that certificate by default, and it isn't meant as a seal of approval. Please don't turn off your antivirus to run URKit. If you hit a false positive, report it to the antivirus vendor or open an issue here, and include the detection name, the file and its SHA-256 digest.
License
URKit is available under the MIT License.