Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity Supports Arabic

Does unity support arabic writing in InputField UI or even GUI Texts ? I mean if I want to write arabic characters in the InputField, does unity support that ?

like image 732
Adam Avatar asked Dec 19 '15 10:12

Adam


2 Answers

There's a free library for supporting Arabic language in Unity. You can download it here

This is part of the readme file. Just add the library and use one of GUIText or 3DText prefabs.

  1. To use the Unity Arabic Support asset inside a script, use: using ArabicSupport;
  2. After using the using statement, use the following method (returns a string): ArabicFixer.Fix(textToBeFixed);
  3. And you're done! You can use the alternative: ArabicFixer(string, tashkeel, hindoNumbers) for more customization options.
like image 131
Alex Jolig Avatar answered Sep 25 '22 23:09

Alex Jolig


No by default but there are libraries/asset packs to make it work.

Just search "Arabic" in the unity store to find them.

Keep in mind that it is really hard to setup TextMeshPro (The addon pretty much everyone uses for crisp text in unity) in Arabic with a different font as most Arabic fonts you find will not have all the characters you need.

Lookup this to see the encoding range you need to put in the font asset creator.

For example you will be able to write letters but only some of the letters will be connected as the font does not have all possible connections and unity wont make them by default.

But I think the Adobe Arabic has all the letters for a start.

like image 25
Abdullrahman Salim Avatar answered Sep 24 '22 23:09

Abdullrahman Salim