Keep WWW loaded assets when application quit

Is there a way I can keep an AssetBundle loaded from my server in application data after I quit and re-run a standalone application? I’d like to be able to update a scene once, and keep the changes when application quit.

Thanks

You could not keep it loaded, as if the Application is not running there is nothing for it to be loaded into.

You can however use the System.IO Stream Writer and write to a file. I’ve used this for Textures, and it works like a charm, however for an Asset Bundle you kind of have to get lucky and hope that writing it in a binary format will make it loadable by the application.

http://www.i3dgames.com/2009/08/09/unity-plugin-sprite-atlas-builder/

Shows a use of System.IO to create a file, and you can try it with AssetBundles to see if you can get lucky and store it on Disc

Thanks Ntero

That’s what I had to do. Now it works :wink: