Even if you register the Japanese period [。] as LeadingCharacters in Line Breaking for Asian languages in PanelTextSettings, it is displayed at the beginning of the line as the screen capture shows.
To reproduce this,
- Create a [1]PanelSettings Asset.
- Create a [2]PanelTextSettings Asset and set it as Text Settings for PanelSettings[1].
- Create a [3]text file and enter any characters you want. Set it as Line Breaking for Asian languages > LeadingCharacters in PanelTextSettings[2].
- Place a GameObject with [4-1]UIDocument Component in the scene, create a [4-2]VisualTreeAsset to be set as the Source Asset, and input the characters in the text file[3] to be displayed at random using TextElement. Set the PanelSettings[1] for it.
- If you change the size of the text or increase the number of characters, you will find that characters that should be specified in the text file[3] are sometimes displayed at the beginning of the text.
I’m not sure if it is only me and I did something wrong or there is a bug. Any help or comment would be appreciated.
Unity Version: 2022.1.4f1