Chinese cannot wrap automatically in the 3DGUI

Chinese cannot wrap automatically in the 3DGUI
Ask for help.

Hello! Let me take a look.

Oh, I see what’s happening. By default, we separate text in words based on the traditional unicode space character: “ ” U+0020 Space (SP) Unicode Character (compart.com). But your text doesn’t contain this space character, and utilizes the “fullwidth exclamation mark” character instead: ! - U+0FF01 - decodeunicode.org. You can solve this in a few ways, one would be to set the fullwidth mark to wordDivider property, but then, the text won’t split on the traditional space anymore. If you’d like to have the option to split on both characters, you can pass your own custom wordSplittingFunction: 3DGUI | Babylon.js Playground (babylonjs.com) :slight_smile:

1 Like

Thank you so much. perfectly solved my problem

1 Like