Can Unity Play Audio Files from an External Source

Hi,

I was wondering is unity capable of playing an audio file from an external source, as in bring in the audio file from a database or an xml file ? or even display images on the GUI from an external source or a movie? I haven't seen much information out there on this!

Any help would be greatly appreciated.

1 Answer

1

Yes. Look at the WWW class for this. You can use it to load an audioclip over the net or from local hard disk and play it back. (even streaming) However this only works for .ogg files not for mp3, which I find to be really annoying. (I know it's probably a license/business problem, but as a developer that's still annoying...)

Great! thank you so much! Really appreciated