Long time ago I worked with mod menu for DLL/mono based Unity games, but I wanna show you a trick. There is a way to show mod menu without using active classes such as UIRoot, Soundmanager… You use mscorlib.dll to create instance in order to show the mod menu.
Template: AndnixSH/UnityModMenuAndroid
Full tutorial: [Tutorial] Unity Mod Menu for Android (Better version)
Mod the Assembly-Csharp.dll with mod menu as usual and save it
Open mscorlib.dll
Expand the ”-” -> Locale and edit GetText(string msg) method
On the bottom-left corner, there is a yellow folder icon which is called ”Add Assembly Reference (Ctrl + O)”. Click on it
Select modified Assembly-Csharp.dll and click Open, and also UnityEngine.dll
If you don’t add UnityEngine.dll, you might get an error
Put the code
And compile
Save mscorlib.dll
Don't panic if your menu won't load after you start the game. Just wait, the menu will appear while game loading
Template: AndnixSH/UnityModMenuAndroid
Full tutorial: [Tutorial] Unity Mod Menu for Android (Better version)
Mod the Assembly-Csharp.dll with mod menu as usual and save it
Open mscorlib.dll
Expand the ”-” -> Locale and edit GetText(string msg) method
On the bottom-left corner, there is a yellow folder icon which is called ”Add Assembly Reference (Ctrl + O)”. Click on it
Select modified Assembly-Csharp.dll and click Open, and also UnityEngine.dll
If you don’t add UnityEngine.dll, you might get an error
Code:
Error CS0012 The type 'MonoBehaviour' is defined in an assembly that is not referenced. You must add a reference to assembly 'UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. main.cs 7
Put the code
C#:
ModMenu.Start();
Save mscorlib.dll
Don't panic if your menu won't load after you start the game. Just wait, the menu will appear while game loading