Understanding Baseline Alignment in TextMesh Pro

Hello,

I’ve got an issue with some text alignment I am trying to understand.

Given the following text
7037215--834190--upload_2021-4-14_15-22-31.png

and using this alignment mode :
7037215--834196--upload_2021-4-14_15-23-8.png

I would expect the text to align geometrically to the base of the text window. Instead, it seems to be aligning to the vertical centre.

Midline behaves as expected, And so does Capline. It is just baseline which doesn’t appear to do what I expect. Can anyone enlighten me on how this alignment mode should be used ?

Baseline alignment is designed / mostly useful for single lines of text.

Baseline aligns the Baseline of the text with the Y = 0 of the text container.

In the image below, I set the height of the RectTransform to 0 which is the yellow line where you can see it is aligned with the baseline of the text.

2 Likes