Hi Tony,
The letters of RTL texts like Farsi or Arabic are shown separated in editor and it's a little hard to read and edit them. like the picture below:
They should be something like this:
آره، حتما! ولي اول بايد يک دارگ جادوگر رو به اينجا بياري تا اين جادو رو از بين ببره
Text mesh pro fix it in the game. But it would be great if I could have them in the right order in the editor too.
Editing RTL texts
Re: Editing RTL texts
Hi,
I don't have a lot of experience with RTL, so I will need to depend on your knowledge.
Internally all strings are stored left-to-right, like:
1-2-3-4-5
Do you want the fa text field to appear like this in the editor:
5-4-3-2-1
I don't have a lot of experience with RTL, so I will need to depend on your knowledge.
Internally all strings are stored left-to-right, like:
1-2-3-4-5
Do you want the fa text field to appear like this in the editor:
5-4-3-2-1
Re: Editing RTL texts
Yes, Making it right to left is a part of problem. But also some letters connect to the others (Not all of them!) It's a bit complicated and more than my knowledge. Maybe implementing a free rtl text plugin into it, can help.
Re: Editing RTL texts
Can you suggest an RTL plugin that works in the editor? I can look into adding integration support, so that it would compile support if you set a scripting define symbol.
Re: Editing RTL texts
Honestly all the plugins that I used, they were fixing the text just in runtime. Only TextMesh pro is showing the RTL texts in the correct way in editor.
Re: Editing RTL texts
Okay, I'll look into this and try to get something into an upcoming version some time soon.