TextMeshPro has a system for making a new line to prevent overflows. but in Japanese, it makes a new line into an inappropriate place because there is no space for each segment. that's like a new line in the middle of "Apple".
So, I'd been inserting a new line ({ln}) in the string having a new line problem. but some of them have been used in multiple places such as MM, QM, and AM (Action Menu), I have come across cases where new lines are not necessary in MM, but are needed in QM.
So, I would like to be able to add a variable that adds new line when used in specific menus such as MM, QM, AM, etc.
For example, if
{mln}
is present in a string, it will break lines when used in MM, but not elsewhere.
My suggestions are as follows:
  • {mln}
    - Variables that are line-wrapped when strings are used in MM
  • {qln}
    - Variables that are line-wrapped when strings are used in QM
  • {aln}
    - Variables that are line-wrapped when strings are used in AM
The attached image shows how the string should preferably be displayed in both UIs.