Open emaadgh opened 7 years ago
Hi, the current version of the Twine Text Player uses the default Unity UI which is very limited. I had to make a custom script to support inline links (WrapLayoutGroup) which is very limited. Since Unity have are intending to integrate the amazing Text Mesh Pro as their new text solution, I will be remaking the Text Player to use it in the near future. It supports inline links and styles, right-to-left, and more so the current workaround won't be needed.
In the meantime, to get around alignment and direction issues I suggest you play around with the WrapLayoutGroup script linked to above. A pull request is welcome if you can get it to respond to RTL and text alignment!
Thanks, and sorry I couldn't be of more help. I'm going to change the title of this issue to refer to Text Mesh Pro integration, keep following it for updates.
Hi, i want to use Cradle in Unity for Right to Left languages like Persian and Arabic. The words of my story looks good in output (Unity3D play mode) but direction of words is inverse. For example : سلام بر شما is showing like : شما بر سلام.
I know that this issue is not from Unity3D because i used this languages in many projects.
Now, in TwineTextPlayer.cs there is a function named DisplayOutput. can i change text direction by change rules of using uiInsertIndex variable? it seems the words of story sentences showing in Text object one by one by last number of this variable.
Thanks!