
Lethal Company
You are viewing a potentially older version of this package. View Latest Version

Change in-game font to other font asset
Create a new project with Unity 2022.3.9
Open Window > TextMeshPro > Font Asset Creator
Import TMP Essentials
Add ttf font file that want to be import
Generate font asset with your language's character set
If you want to use the in-game alphabet font, exclude the alphabet from the character set
Save with the name below
Create "Editor" Folder
Create script file, then paste below source in file
// https://docs.unity3d.com/Manual/AssetBundles-Workflow.html
using UnityEditor;
using System.IO;
public class CreateAssetBundles
{
[MenuItem("Assets/Build AssetBundles")]
static void BuildAllAssetBundles()
{
string assetBundleDirectory = "Assets/AssetBundles";
if(!Directory.Exists(assetBundleDirectory))
{
Directory.CreateDirectory(assetBundleDirectory);
}
BuildPipeline.BuildAssetBundles(assetBundleDirectory,
BuildAssetBundleOptions.None,
BuildTarget.StandaloneWindows);
}
}
Select Normal.asset, Transmit.asset, add to AssetBundle
AssetBundle's name must be "font"
Build AssetBundles
Copy "font" file
Browse mod folder, then replace "font" file