Mulitlanguage?

Hello,
what’s the best way to build a multilanguage App with Unity (mobile devices)?

Any help?

I would probably try to just save all the text in different files (one file per language, perhaps?) And just read in all the text you need when you actually need it. But you would have to make sure that all the text actually fits in the container (text box?) that you write it to… you wouldn’t want the text to be cut off just because its several symbols longer than , lets say, for example, in English.

But I have no idea about Apps or how to actually read from files in Unity. I goes that you would probably have to use C#… assuming that we can’t do that with Unity/JavaScript or whatever you wanna call it.

btw: No idea if this is the best way, but it might be a possible solution.

I’ve never done it, but what I would do from thinking about it is have a menu where the end user could choose which language they want it to be in and that would change a variable. Then each time you want to display text ( Label etc. ) you check that var and display accordingly. This way you don’t have to deal with files. But as my friend above stated: I have no idea if this is the best way. This is just the way that pops into my head.

Best of luck,

  • WolfShield

No, you wouldn’t have to use C#. Anyway there’s no real reason to read files, just use TextAssets.

–Eric

Are there any docs or sample code for TextAssets?