Article turn from Http://blog.csdn.net/huutu star Ring game http://www.thisisgame.com.cn reprint Please specify
When using fonts made by colleagues with Bmfont, it was found in Unity 3d that it was not aligned in the center.
When you try to align the top alignment center to the bottom, you find that the WordArt is anchored at the top.
So the result is like the picture above, we select the center alignment, but in Unity3d we see the top aligned to the center of the text box.
Because yesterday it was simple to learn the Custom font of unity, so I think you can manually modify the Cunstom font file.
Manually modify the Cunstom font file, such as.
change the Y in the box to 15 (half the height of the image), save it and look at it, and discover that it's the effect we're looking for.
However, it is not always possible to make the fonts from Bmfont and then to modify them, or to modify them from the Bmfont.
For example, when importing text pictures to Bmfont, modify the negative numbers that set Y offset to half the height of the picture.
Article turn from Http://blog.csdn.net/huutu star Ring game http://www.thisisgame.com.cn reprint Please specify
Unity3d Art fonts made using Bmfont cannot be centered on the solution