- Home /
Does WWW.LoadFromCacheOrDownload work on FLash?
Hi. Anyone has tested WWW.LoadFromCacheOrDownload on Flash. I am getting this error:
Error
at UnityEngine::WWW/WWW_Constructor_String_Int32() at UnityEngine::WWW$/WWW_LoadFromCacheOrDownload_String_Int32()
And I don't know if the problem is the asset bundle I'm trying to download. On Webplayer it works.
Thanks,
Answer by catburton · Aug 08, 2012 at 03:13 PM
WWW.LoadFromCacheOrDownload is not supported for Flash export. Try downloading your asset bundle using WWW(bundlePath) instead.
If that still doesn't work, make sure you're building your asset bundles for the correct platform (BuildTarget.FlashPlayer).
Thank you, Cat. I guess there will be a lot of fixes on flash export when Unity 4 was released.
Answer by RalphH · Jan 29, 2013 at 11:36 AM
I've added an example of LSO caching using a Flash bridge to the forums / github which can be used for Caching on Flash. http://forum.unity3d.com/threads/168185-Using-Local-Shared-Objects-for-AssetCaching-example.