Exposing localization string from code on Unity games

Hard to find right function to hack? You can expose localization string to find function easier

There are many ways to get localize. Open Assembly-Csharp.dll in dnSpy, Look around until you find something similar. In this case, it's LocalizationManager.GetLocalizedValue

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 :)