效果图: using System.IO; using System.Text; using UnityEditor; using UnityEngine; using UnityEngine.UI; /// <summary> /// 将目标文件夹下所有Prefab的丢失.默认字体的位置输出,并替换成目标字体 /// </summary> public class BatchModifyFontWindow : EditorWindow { Font toFont = new F
实例化Font类时,当传入参数为不存在或未安装的字体时,Windows系统会用Microsoft Sans Serif字体替代该字体. Msdn: "For more information about how to construct fonts, see How to: Construct Font Families and Fonts. Windows Forms applications support TrueType fonts and have limited support fo