agens-no/PolyglotUnity

Right aligned text

spassvogel opened this issue · 3 comments

I have some (English) text in a Text Component that has a LocalizedText. However, when the text gets translated, it automatically gets aligned to the left because of protected override void UpdateAlignment(Text text, LanguageDirection direction) ...

I would like to see an option on LocalizedText to maintain the original text alignment. Do you accept pull requests?

Well perhaps a boolean on LocalizedTextComponent that prevents changing of text alignment? It could default to false to keep the existing behaviour.

That way you can set it per unity component instance.

Something like this: #13