当用代码创建自定义字体时出现
Could not get texture importer
UnityEditor.TrueTypeFontImporter:GenerateEditableFont(String)
错误时,只需要在代码中设置TrueTypeFontImporter的fontTextureCase为CustomSet即可:fontImporter.fontTextureCase = FontTextureCase.CustomSet;
当用代码创建自定义字体时出现
Could not get texture importer
UnityEditor.TrueTypeFontImporter:GenerateEditableFont(String)
错误时,只需要在代码中设置TrueTypeFontImporter的fontTextureCase为CustomSet即可:fontImporter.fontTextureCase = FontTextureCase.CustomSet;