hi dear!
i want to build a game in default language Farsi (Persian) . it is a complex right to left language (like Arabic). when i type Farsi in dialogues or any other places , it ruins the text because it tries to put the chars from left to right with a space between them. is there any chance i could create a gave with AC in default Persian language ?
Comments
As you'll be aware, displaying text right-to-left is more complex than it first sounds, as it also affects things like line endings, paragraph alignment, etc. Trying to account for all of this within AC itself would inevitably lead to problems, and there are some good assets on Unity's Asset Store that handle this better than AC ever could.
The best way to do this, in my opinion, would be to rely on Unity UI for your Menus (an option available in the New Game Wizard, and covered in Section 11.3 of the Manual), and then transfer the text in the AC-controlled Text boxes into your own ones that convert the text correctly.
Essentially, you'd hide the AC Text components from view, and then have a custom script that copies their words, converts them correctly, and then pastes them into a new Text component every frame.
If i'm right you suggest that i should use the Unity default component instead of using AC component? But how should i use the dialoge system when player talks to Npc?
I'm Iranian too .Welcome to forum
This problem is not relative to AC . It's about Unity . Did you test 'Parsi Negrar' persian software ? I worked with it and haven't any problem after compile too.
Another alternatives is 'I2 Localization v2.6.5 f5' package .
Also see here:
http://promakers.ir/forum/showthread.php?tid=5236
Good luck
Mehrdad
Do you have a Subtitles Menu listed in your Menu Manager? If you change it's Source field to Unity Ui Prefab, it'll then rely on Unity UI for its display.
The default Subtitles UI prefab you can use can be found in /Assets/AdventureCreator/Demo/UI/SubtitlesUI - drag that into the Menu's Canvas field if it is not already assigned.
Subtitles should then display using that UI when characters speak. You can then duplicated and modify this SubtitlesUI prefab to work the way you wish.
دوستان عزیزی که میخان از این پلاگین استفاده کنند اینه که فونت دیفالت رو با یکی از فونت های نرم افزار مریم عوض کنن و متون رو با استفاده از فارسی نویس مریم وارد سیستم کنن. ضمنا نوع فونت از ttf باید به otf تغییر پیدا کنه که ابزار آنلاین و رایگان اون موجوده. موفق باشید.
That was clear . Thanks so much .
@Snebjorn
Sorry for Farsi conversation as here is English forum . There is a software as Maryam name and made for Farsi type. After type we have to copy- paste in Unity and change TTF to OTF and and replace it with default AC font.