Right aligned text
spassvogel opened this issue · 3 comments
spassvogel commented
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?
skjalgsm commented
Yep. I’m planning on doing something about this as it has been bugging me
to. What are your proposed changes?
man. 10. sep. 2018 kl. 10:35 skrev Wouter van den Heuvel <
notifications@github.com>:
… 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?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAitDdBO_-vxlvVAFwgTjM6C7r2oNh1Lks5uZiRIgaJpZM4Wg8dv>
.
spassvogel commented
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.
spassvogel commented
Something like this: #13