Right to Left (RTL) Text Converter

RTL is a Unity plugin that enables correct rendering of right-to-left languages in Unity UI. It processes your raw RTL text and produces a visually correct string that UI.Text and TextMeshPro can display properly, no engine changes required.


What It Does

RTL processes input strings before they are assigned to Unity's text component. It applies:

  • Bidirectional reordering - characters and words are placed in correct visual RTL order
  • Contextual letter shaping - Arabic and Persian letters take their correct initial, medial, final, or isolated forms
  • Mixed-direction support - Persian or Arabic sentences containing English words or numbers render in proper logical order
  • RTL-aware word wrapping - line breaks are inserted at correct boundaries for RTL scripts
  • Rich text preservation - Unity tags like <color>, <b>, <i>, and <size> survive the conversion intact

The result is a correctly shaped, correctly ordered string that Unity renders normally.

The plugin runs entirely locally and works offline, requiring no internet connection, external services, or third-party dependencies.


Supported Languages

  • Arabic
  • Persian (Farsi)
  • Hebrew
  • Urdu
  • Pashto

Please visit https://github.com/team-femoli/unity-rtl for technical documentation.