Description

he WWW class supports the file:// protocol on Unity iPhone. Here is what you have to do : - Package your assets into bundles using editor scripts (the example project should help you : http://unity3d.com/support/resources...s/assetbundles . It's for Unity (not iPhone) but it works the same way)

  • Put your asset bundles into the iPhoneStreamingAssets folder : the will be copied in the .app in the Data/Raw folder !

  • Get the proper file:// link to load the asset. I use this :

Code:

public static string GetAssetBundleBasePath () { if (Application.isEditor) { return "file://" + Application.dataPath + "/../iPhoneStreamingAssets/"; } else { return "file://" + Application.dataPath + "/Raw/"; } }

Preview

Tags

Users

  • @sac

Comments and Reviews