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
1
Question by ahmadreza.hadidi · Dec 09, 2014 at 01:35 PM · c#2deditormesh

Implementing Persian(RTL Languages) in Unity UI

Hi every body. I want to implement Persian and other RTL languages in unity UI. whats the entrance of my coding? Where should I start?

I found that in unity UI source there is a class named Text that implements simple label in GUI, in this class the code uses a class named "TextGenerator" that make the text mesh. how can i make a new "TextGenerator" class witch supports RTL language.

I know that there is a Asset named "ArabicSupport" witch change the inputed string to characters that with a specific font, shows RTL in right state. but when the text is a multi line string, the whole text is Inverted (because this is a way to show RTL in LTR).

now i want to make a new mesh generator for RTL languages.

any one could help me?

(Sorry for my bad english)

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

4 Replies

· Add your reply
  • Sort: 
avatar image
-1

Answer by Decapitary · Dec 08, 2016 at 06:45 AM

Hi Make A Text in Photoshop and use and background Image. then swear as much as possible at this C#-using-CaveMen who develope Unity

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 3d_Artist1987 · May 04, 2015 at 10:09 AM

check this link

https://www.assetstore.unity3d.com/en/#!/content/4348

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 ahmadreza.hadidi · May 06, 2015 at 08:52 AM 0
Share

Tank you devang_xprt but this is not what i expect. But now i have may own implementation of UnityUI that supports RTL Languages. Now i'm in the stage that i should improve the input filed to fully support Persian and Arabic language. So i my self could solve multiline problem of RTL languages.

avatar image sakito-21 ahmadreza.hadidi · Nov 23, 2018 at 02:30 AM 0
Share

Hello, Can you share your implementation?

avatar image
0

Answer by esx2ve · May 19, 2017 at 01:56 PM

We have an InputField that supports RTL + caret handling

https://forum.unity3d.com/threads/released-native-rtl-input-field-with-correct-caret-handling.471403/ https://www.assetstore.unity3d.com/#!/content/87569

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 sajjadgameactor · Apr 21, 2020 at 06:24 PM

First and best solution is using Textmesh pro. Now it has TextMeshProGUI component which is the best choice for Arabic and Persian and RTL languages for UI and you can use it in canvas. having mesh in this component name Don't let mislead you. It can be used in canvas and UI and is even better than default Text ui text component of unity. It has no any margin problem or multi line problem.


If you want a very quick solution you can use this package as simple as

 yourText.faConvert ();

for multi-line support you should set line spacing to -1.


Next solution is using the package you refer to or a better version can be found here. the only problem with this packages is some margin problems. but you should change all the text component with RTLText component so when TextMeshPro is available there is no any reason to use it anymore.


The last solution is to use this localization asset which has some auto fix for RTL languages. For multi line support you can set line spacing to -1 or it has a simple solution to break line on a constant length.

Comment
Add comment · Show 1 · 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 ESI_GameStudio · Dec 16, 2021 at 03:57 PM 0
Share

I set my line spacing to -1. but after that, my first line had a big space like a last line.

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

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

Initialising List array for use in a custom Editor 1 Answer

Need Pointer: How to create 2D map in Unity? 1 Answer

Mesh Creator (editor script) At Runtime 1 Answer

Change Material of quad in script c# unity 2d 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