Hi all,
My team has a fairly hefty iPhone app that was getting fairly bloated. And even though our assets are under /Resources, the load time is getting so long that sometimes the iPhone shuts the app down with an error about load timeout.
So since 1.5.1 has opened access to the file:// protocol using the WWW class, we've decided to take all of the textures and some of the art assets and move them into assetbundles for the various versions of the app.
My assumption was to put our .assetbundle files under the /iPhoneStreamingAssets directory in the hopes that they would be copied to the root of the application on the device.
The app works great in the editor using this path:
Application.dataPath + "/../iPhoneStreamingAssets/" + AssetBundleName
And I assumed that I could use new WWW("file://" + Application.dataPath + "/iPhoneStreamingAssets/" + AssetBundleName) to load the asset bundle on the device.
However, that doesn't seem to be the case.
How do I generate the proper path to get to these asset bundles on the actual device?
Thanks,
Matt

Reply With Quote