font = new Font("STHUPO");
Debug.Log(font.name);
通过这个方法可以获取fontname 但是在运行的时候 字体不显示
这样的情况可以加载 但是换成自己的ttf就不行
text.font= Resources.GetBuiltinResource(typeof(Font), "Arial.ttf") as Font;
text.font= Resources.GetBuiltinResource(typeof(Font), "STHUPO.ttf") as Font;
Assertion failed: Failed to find STHUPO.ttf
UnityEngine.Resources:GetBuiltinResource(Type, String)
NewBehaviourScript:Start() (at Assets/Scripts/NewBehaviourScript.cs:37)
求老师高手指点