This is the AMP version of this page.
If you want to load the real page instead, click this text.

Tutorial How to inject mod menu into DLL based Unity games (Mono backend ONLY)

Tigress

Platinian
Jul 20, 2017
20
101
18
when I try to add my code to an existing class, that's when I have a problem.
 

DaRealPanDa

Co-Administrator
Staff member
Supporting-Team
Global Moderator
Social Media
Mar 12, 2018
7,069
15,931
2,120
27
Skyrim
I don't work with this Menu, but normally you must declare ( using ) the Menu before you can call anything in it.
Which mean you must write " using TgmM; " or anything like that.
 

✟LiL-PEEP✟

Platinian
Jun 23, 2018
7
2
183
35
Germany
I don't work with this Menu, but normally you must declare ( using ) the Menu before you can call anything in it.
Which mean you must write " using TgmM; " or anything like that.
Not this Menu, it works with "using UnityEngine;", it's allready declared on his screenshot

@DaRealPanDa, Thanks for the tip, I am going to try that now.
Maybe u should try to work with the menu, without renaming it, work with UnityModMenuAndroid: to learn how the menu works correctly.
 

✟LiL-PEEP✟

Platinian
Jun 23, 2018
7
2
183
35
Germany
And you should write it like this:
Code:
"<color=yellow>This mod apk file is provided by\n ### Tigress™ ###</color>"
\n !!! and it will look like this here:
 

✟LiL-PEEP✟

Platinian
Jun 23, 2018
7
2
183
35
Germany
@Evilclown

should look like this....
Code:
        if (YourModMenuName.toggle1)
        {
            if (GUI.Button(YourModMenuName.BtnRect(1, false), "Add 1000000 Gold: ON", YourModMenuName.OnStyle))
            {
                yourModMenuName.toggle1 = false;
            }
        }
        else if (GUI.Button(YourModMenuName.BtnRect(1, false), "Add 1000000 Gold: OFF", YourModMenuName.OffStyle))
        {
            YourModMenuName.toggle1 = true;
 

Evilclown

Solid & Active Platinian
Jun 25, 2018
66
4,425
183
Usa
I can get on/off and multi buttons to work but not where you push the button and it does the desired effect. here is the code AndnixSH has in the menu

/// Clicker Button // You can add own code or re-use code to do something fun like
// Instant win: Class1.scenario.InstantWin();
if (GUI.Button(BtnRect(4, false), "Instant win", BtnStyle))
{

}
 

Tigress

Platinian
Jul 20, 2017
20
101
18
@✟LiL-PEEP✟, thanks for the colour correction & explanation.
Please is there a way I could get screenshots of how you added all the codes to the class "not the active classes".
 

Tigress

Platinian
Jul 20, 2017
20
101
18
@✟LiL-PEEP✟, thanks for the colour correction & explanation.
Please is there a way I could get screenshots of how you added all the codes to the class "not the active classes".
Never mind about the screenshots, I just want to confirm something.

The circled text, are they meant to be the same class?
 

wtfish

Rookie
Sep 18, 2017
1
0
13
42
Remove bgstyle from the buttons and remove all the styles. it will still work but you get a normal not that fancy buttons.