Array of strings representing the lines in the Text component?

Hey!

I am in the middle of implementing Arabic support in one of our games. I use this free plugin in order to render the correct characters, but now I need to flip the order of the lines in multiline text boxes.

Example:

"This is how I want
an Arabic text to
show in the game"

will render like

"show in the game
an Arabic text to
This is how I want"

which I think displays my problem well enough. My question is: Can I get an array of strings representing the lines in the Text component?

My current workaround is to use the cachedTextGenerator that exists in the Text component to get information of the starting indices of the lines. With this I generate the string array and am able to flip the rows. This is a viable method, but not as low-energy as I would like to have.

Cheers,
Edvard from Sweden

The way you are doing it is the way i would have said it should be done. Sorry no easier method.

Aw, chucks!

Thanks for the rapid response anyway! :slight_smile: