Exposing localization string from code on Unity games (DLL / Mono based only)
Hard to find
right function to hack? You can expose localization string to find function
easier
This
is for DLL based games only.
Not all games
are same, the localization function to get string can be called Get,
GetLocalizedValue, GetString, Localize, Load etc.
To find it, search
for UI related and look around until you found something like this. In this example
I found LocalizationManager.GetLocalizedValue that sets the string to text.
Modify it to
return string from string parameter. In this case, "key"
You will see
something like this in-game
Search the
string in dnSpy and you find the right function :)
You can
practice with the following old version of games which was DLL based
Draconius GO:
https://apkpure.com/draconius-go-catch-a-dragon/net.elyland.DraconiusGO/download/10044-APK?from=versions%2Fversion
Poche
Guardians: https://www.apktoy.com/poche%C2%A0guardians/com.poche.guardi.ans