![]() Open the TextMesh Pro GameObject in the Inspector, and disable the Text Mesh Pro > Extra Settings > Rich Text property.To disable rich text for a TextMesh Pro object: Enter any supported rich text tags in the TextMeshPro Text input field, inline with the text you want to display.For example, you can use rich text tags to change the color or alignment of some, or all of your text without modifying its properties or material. Just make sure you follow the project's code style.Rich text tags alter the appearance and layout of text by supplementing or overriding TextMesh Pro GameObject properties. Now you can use InputFields and Dropdowns.Īll contributions are welcomed.Open RTLTextMeshPro.cs and uncomment the top line where it says //#define RTL_OVERRIDE.Open TMP_Text.cs from TextMeshPro source code.You need to manually make the property virtual. But the text property is not defined virtual. Why it doesn't work? We need to override the text property of TextMeshProUGUI. InputField, Dropdown (and anything that was designed to work with TextMeshProUGUI script) will not work unless you do these steps below.When checked, RTL Text Mesh Pro will try to fix rich text tags. Multiline English texts will have problem on components that have ForceFix checked. RTL Text Mesh Pro does not fix texts that start with English characters.Ĭhecking this checkbox forces RTL TextMeshPro to fix the text even when it starts with English character. When checked numbers will not be converted. When unchecked, English numbers will be converted to Arabic numbers. When checked, English numbers will be converted to Farsi numbers. Enter text in RTL TEXT INPUT BOX secion.Assign your font asset Font Asset property in RTL Text Mesh Pro component.(Alternatively you can replace Text Mesh Pro UGUI components with RTL Text Mesh Pro) Use GameObject/UI/* - RTLTMP menu to create RTL UI elements.Press Save TextMeshPro Font Asset and save the asset.Press Generate Font Atlas button and wait for it to generate the atlas file.Paste copied ranges inside Character Sequence (Hex).Assign your font in Font Source field (Your font must support RTL characters).Open Window/TextMeshPro/Font Asset Creator window.Make sure you have copied ranges that you want to use.Arabic tashil are in TashkilRanges.txt file.English, Arabic and Farsi numbers are in NumberRanges.txt file.RTL Letters are in LetterRanges.txt file.Open one of the range files in Assets/RTLTMPro/Ranges/ folder using your favorite text editor.Go to release page and download latest unitypackage file (or copy RTLTMPro folder from source to your project.).DO NOT Install Text Mesh Pro from Asset Store. You can install TMPro via Package Manager. You need to have TextMeshPro plugin in your project.You can insert Zero-Width No-Joiner character with Ctrl+Shift+2 hotkey. Yes, This plugin has no problem with multiline RTL texts.Įnglish, Farsi and Arabic digits are supported Start writing and texts will be converted right away.Īll Text Mesh Pro's tags are available in RTL Text Mesh Pro You don't need to convert, copy and paste texts. You need to have TextMeshPro plugin in your project. This plugin adds Right-to-left language support to "Text Mesh Pro" Unity plugin. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |