Skip to content

Commit 60ac5e8

Browse files
committed
Enable RT/LTR
1 parent b58a4c6 commit 60ac5e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Assets/Scripts/UITk/MainView.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,12 @@ void SetupUI()
431431
// Trigger the bound strings to update.
432432
m_PlayerSettings.Notify("boldTextEnabledText");
433433
m_PlayerSettings.Notify("closedCaptionsEnabledText");
434+
435+
// Update text direction
436+
if (loc.Identifier.CultureInfo.TextInfo.IsRightToLeft)
437+
root.languageDirection = LanguageDirection.RTL;
438+
else
439+
root.languageDirection = LanguageDirection.LTR;
434440
};
435441

436442
ShowSplash();

0 commit comments

Comments
 (0)