Unity TextMeshPro rich text - text horizontal alignment

material

document

text horizontal alignment

Alignment: Left, Right, Center, Justified, Flush
Use: <align=left>左对齐</align>, can be assigned left, right, center, flush, justified
This label will override the default alignment. Text inside the label is affected, text outside the label uses the default alignment. Use </align>to set the range affected.

Caution

  1. If there are multiple text alignment tags on the same line, only one alignment tag will work, and the last one will work.
  2. Text tags are generally used at the beginning of an article, and there is no content before and after the tags, before and after: before and after the same line of sticky notes
  3. If there is content and label on the same line, if there is content before the label, the content before the label (same line) will also be affected; if there is content after the label, the label will be invalid and the default alignment will be used.

Guess you like

Origin blog.csdn.net/weixin_43796392/article/details/131927626