Konash / arabic-support-unity

This plugin allows you to use accurate and correct Arabic text in your game or 3D application. Supports Tashkeel and Hindu numbers. Supports C# and JavaScript. Supports 4 Persian Characters.
MIT License
220 stars 64 forks source link

GUI Text is obselete #42

Closed ah1053 closed 3 years ago

ah1053 commented 4 years ago

using UnityEngine.UI;

gameObject.GetComponent().text = "This sentence (wrong display):\n" + text + "\n\nWill appear correctly as:\n" + ArabicFixer.Fix(text, false, false);

Great effort @Konash Chapeau ⭐

Waqax19 commented 3 years ago

this is not working correctly, still giving errors

ah1053 commented 3 years ago

gameObject.GetComponent().text should do it

albrrt commented 3 years ago

Same issue here but easy fix, worth upgrading the code for everyone. See my pull request #44

ah1053 commented 3 years ago

Fixed by @albrrt PR https://github.com/Konash/arabic-support-unity/commit/951492f3302ed78ca2faa9f782b87f7d8690be88 Thanks