Save Image and sound to local?

How to use WWW to get an image and sound and save them to local?

1 Answer

1

Use WWW with the URL of the content, wait for the result (yield), get the bytes, and save them using System.IO.File. There are answers here for each of those steps.

If your target is WebPlayer, you cannot save locally. You can save up to 1MB of data to PlayerPrefs.

The main problem is I save as bytes, how do I read them to be assets used in future?