Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by baha · Jan 07, 2010 at 10:48 PM · guiinternationalization

Arabic Language

I was trying to write in arabic, the editor does not support arabic so i write on the GUI using script but the problem is that arabic font is right-to-left and unity writes it for left-to-right so words looks to be flipped instead of '' it is '' so what can i do to solve this problem because it is very important to me and i can't create my product without it.

the following is the label creation script:

GUI.Label(Rect(Screen.width/2,Screen.height/2,200,40),"",ArabStyle);

the arabstyle font is unicode in which i tried multiple types of fonts and still having the same result.

what i can do to solve this problem?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

6 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Lucas Meijer 1 · Jan 08, 2010 at 12:20 AM

Unity currently doesn't support right to left languages. The best workaround is trying to use bitmaps instead :(

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by Ashkan_gc · Jan 08, 2010 at 02:43 PM

Update we've released the package to the public. Click here for more info

unity don't render your text correctly even if you flip your font or reverse the string. rendering complex script languages like Arabic and Persian (Farsi) needs additional processing. in windows a library called uniscribe does this but you can not use it easily in unity. the renderer should know which character to render. for example we have different shapes of arabic letter "seen" and all of them has the same character in string. we made a solution to solve this problem. email me at ashkan_gc@yahoo.com for more information. also go and vote for right to left support here. our solution is a class that gets the string and replaces the characters with those characters that should be rendered because this part of unity is not scriptable unfortunately. vote for the above feedback and tell other users to do this because our solution is not as good as a built in solution. the standard way of rendering texts like arabic is to put logic in renderer. renderer don't modify the string like our script but instead render the correct character instead of those characters inside the string.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ashkan_gc · Feb 22, 2012 at 03:29 PM 1
Share

We've released the solution http://en.$$anonymous$$dhammergames.com/index.php/news/28-persianrenderer-is-released-in-asset-store.html

avatar image ND · Sep 12, 2012 at 04:35 PM 0
Share

Here's what you want: http://u3d.as/content/raymon-game/raymon-right-to-left/3kv and the demo is here: try it: http://raymongame.com/rtl-demo/index.html

avatar image
1

Answer by hamedaf · Jun 20, 2012 at 08:00 AM

there is a plugin in the asset store developed by a friend that would help you guys type arabic :)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by baha · Jan 08, 2010 at 01:13 AM

IS there any idea on how to make my font work backword :),like how should i manipulate the font file? or can i add a custom class to do it for me? like manipulating the asset importer to flip it? i need users to write in arabic because im working on a chat application

i will do any scripting required to make it work for right-to-left but i need some guidelines :)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by ND · Sep 11, 2012 at 08:35 AM

Try this page : Arabic/Persian/Kurdi right to left

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How can I internationalize(I18n) a unity 3D project? 3 Answers

Some foreign characters disappear on Android, what should I do? 0 Answers

What is best practice for translation handling? 0 Answers

UI elements problem 0 Answers

Disable one GUI Button with my Mouse Scroll Wheel? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges