简体   繁体   English

无法在场景视图或游戏视图中查看 TextMeshPro (TMP) 文本

[英]Cannot view TextMeshPro (TMP) text in scene view or game view

As you can see, I am unable to view any sort of text inside the TMP.如您所见,我无法查看 TMP 中的任何类型的文本。 It was working perfectly fine until yesterday.直到昨天,它都运行良好。 Also, all my Layers are visible in the settings.此外,我所有的图层都在设置中可见。 Any ideas on how to fix this?有想法该怎么解决这个吗?

图片

I believe the issue is that you have no font asset assigned.我认为问题在于您没有分配字体资产。 Without a font asset assigned there are no glyphs for the component to reference when rendering your message.如果没有分配字体资产,则在呈现您的消息时,组件将不会引用任何字形。

这

Either drag and drop a TMP_Font asset from your editor, or click on the little target symbol which will bring up an editor window of all types TMP_Font , then assign one of the fonts that pop up.从您的编辑器中拖放TMP_Font资产,或者单击小目标符号,这将调出所有类型TMP_Font的编辑器 window ,然后分配弹出的 fonts 之一。 If you are still having issues after assigning a font let me know.如果您在分配字体后仍然遇到问题,请告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM