Skip to content

Instantly share code, notes, and snippets.

@cktang88
Last active April 26, 2025 22:24
Show Gist options
  • Save cktang88/f6cad485da2fdabdbc3a92a8a4762a87 to your computer and use it in GitHub Desktop.
Save cktang88/f6cad485da2fdabdbc3a92a8a4762a87 to your computer and use it in GitHub Desktop.
Unity game inspection/modification

How to modify Unity games from Steam (eg. for changing behavior, adding lots of currency/etc.)

For games with /Managed/Assembly-CSharp.dll:

  1. use the updated dnSpy fork, drag and drop in the Assembly-CSharp.dll and edit the source code, then Save All, and reload game.

⚠️ NOTE: occasionally, when trying to edit and save, you'll get compile errors. To resolve this, you can try to edit the assembly directly, screenshot the lines of assembly code you want to edit into Gemini or chatGPT to edit and then paste back.

For games with no /Managed/Assembly-CSharp.dll (meaning not written in C#):

Use the updated UnityExplorer fork and MelonLoader.

  1. Open MelonLoader launcher and select the game you want to add, via the auto game detection GUI.
  2. Go to the Steam game, click on "Browse Local files" to get you to the game sources folder.
  3. Paste in the /Mods and /UserLibs folder with files from the UnityExplorer zip (usually CoreCLR version for newer games)
  4. Run the game, you should see a UI, usually all you need to do is to inspect the right IL2CPP class, edit some variables, or call some functions manually/creatively.
    • even if nothing else, at least you can speed up/slow down time in the top right :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment