我在通过脚本更改波斯语(从右到左的语言)字体时遇到了一个奇怪的问题。当我从 web 服务获取文本并使用 Unity3DFarsi 库将其转换为正确的 veiw 时,我通过以下代码加载了放置在资源文件夹中的字体:
font = Resources.Load("myfont") as Font;
tempButton.GetComponentInChildren<Text>().font = font;
tempButton.GetComponentInChildren<Text>().text=sample.faConvert(); //sample is my text
我的问题是,但是统一编辑器中的字体更改为“myfont”,它对我的文本没有影响,也没有改变,下面是我的场景的镜头。请帮助。谢谢 截图
[