I am trying to load the manifest object for my asset bundle from a remote url. I am loading the .unity3d file and trying to access the “AssetBundleManifest” asset from the loaded asset bundle but it is coming up null. What am i doing wrong?
public IEnumerator LoadAssetBundle(string newFileName, string assetName)
{
string downloadPath = assetBundleBaseUrl + newFileName;
using (WWW www = WWW.LoadFromCacheOrDownload(downloadPath, version))
{
yield return www;
AssetBundle assetBundle = www.assetBundle;
AssetBundleManifest manifest = (AssetBundleManifest)assetBundle.LoadAsset("AssetBundleManifest", typeof(AssetBundleManifest));
string[] dependencies = manifest.GetAllAssetBundles();
assetBundle.Unload(false);
}
}