Skip to content

Instantly share code, notes, and snippets.

@cktang88
Last active April 3, 2025 16:18
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.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment