I18NFont4UnityGame is a plugin I made for translate unity game, based on BepInEx.
It can load custom font packages to fix the problem of missing fonts in the game.
- Install BepInEx for the target game
- Clone repositories
- Open with visual studio 2019
- Modify the reference DLL according to the target game
- Compile this plugin
- Put the plugin into the GameName/BepInEx/plugins/I18NFont4UnityGame/ folder
- Put the font package into the GameName/BepInEx/plugins/I18NFont4UnityGame/ folder
- Modify the FontName value in the configuration file to the font name (if there is no configuration file, start a game to generate)
- Enter the game
Source Han Sans
Font Package File Good looking fonts suitable for China, Japan, South Korea and other places https://github.com/adobe-fonts/source-han-sansUnifont
Font Package File Applicable to almost all regions, but not very clear http://unifoundry.com/unifont/index.html
- Install unity which is the same as the game version
- Create a new project and install AssetBundleBrowser in PackageManager
- Change the font file name you want to make into a font package to all lowercase
- Put the font into unity
- Select the font and right-click, select Create->TextSeshPro->Font Asset
- Adjust TMP atlas settings, such as sampling rate, to achieve the desired effect
- On the Inspector panel, set the AssetBundle name for the imported font and TMP font. The name should be all lowercase and consistent with the file name of the font
- Open window - > Asset Bundle Browser to Package Fonts
- Put the generated font package into the GameName/BepInEx/plugins/I18NFont4UnityGame/ folder