在 Unity 2D Text 组件中,属性 fontSize 是单位吗?

In a Unity 2D Text component, is the property fontSize in units?

我正在构建一个基于 5x5 网格的游戏作为学习项目,当嵌套在带有背景图像的预制件中时,我很难让文本正确显示和缩放。

fontSize 是单位吗?如果不是,fontSize 相对于什么?文字要么很大,要么很小,但模糊得一团糟。

我觉得关于这个主题的文档有点模棱两可。

此论坛帖子有点过时,但了解它们如何根据屏幕大小确定字体大小可能对您有所帮助:

https://forum.unity3d.com/threads/changing-text-size-relative-to-screen.102876/

同意,documentation 可以更清楚地说明这一点:

"Adjusting the font size effectively changes how many pixels are used for each glyph in this generated texture. Text Mesh assets are 3d geometry textured with these auto-generated font textures. You will want to vary the size of the font to make these assets look crisp"