Localising content at runtime?

Hi,

I’ve had a search of the forums, but not found anything that addresses this specific question.

Is it possible to load in the following files at runtime that contain localised content for specific regions?

  • JPG / PNGs
  • XML (possibly XLIFF)
  • Video (What formats are supported?)
  • Audio (Again, what formats are supported?)
    [edited to add Audio]

Can anyone point me at any examples of this, or anything specific in the API I should be looking for? I’m mainly interested in localising strings.

I do this all the time with Flash, I’m assuming that Unity can :slight_smile:

Thanks for any help or pointers.

I’m guessing you could just create prefabs and save as packages or asset bundles ( Unity - Scripting API: AssetBundle ).

Thanks, I’ll take a look.

The way I work is to create the .SWF (and hopefully .unity!), zip up all the XML, JPG, MP3 and FLV/MOV files, then send that off to a localisation company.

The only things they will change are the XML, JPG, MP3 and FLV/MOV files. They do not have the capability to alter SWF (or .unity) files.

You can manage most of these (JPG/PNG, video and audio) using the WWW class. Supported audio and video are Ogg Vorbis and Ogg Theora formats, respectively.

As for XML, if you’re using Unity on the desktop or web (not iPhone), you have full access to System.Xml, which should fulfill all your XML needs.

Audio also supports uncompressed, such as AIFF, WAV.

–Eric

Brilliant, thanks guys. Looks like it’ll work!

Eric5h5 wrote:

Could someone please confirm this. It contradicts what is stated in the documentation: “The data must be an audio clip in Ogg Vorbis format.”.

I receive no errors when loading *.wav or *.aif files using the WWW class, but when I try to access the audioclip fields they return nothing.

~ce

Actually I don’t think I realized this was for WWW specifically when I posted that. Probably the docs are right.

–Eric