I know that old asset bundles won't work, but building new ones doesn't either. I'm using this editor script which I found somewhere to do it:
[MenuItem("Assets/Build AssetBundle From Selection - Track dependencies")]
static void ExportResource()
{
// Bring up save panel
string path = EditorUtility.SaveFilePanel("Save Resource", "", "New Resource", "unity3d");
if (path.Length != 0)
{
// Build the resource file from the active selection.
Object[] selection = Selection.GetFiltered(typeof(Object), SelectionMode.DeepAssets);
BuildPipeline.BuildAssetBundle(Selection.activeObject, selection, path, BuildAssetBundleOptions.CollectDependencies | BuildAssetBundleOptions.CompleteAssets);
Selection.objects = selection;
}
}
When trying to download the new and improved asset bundle, it says:
>You are trying to load data from a www stream which had the following error when downloading.>The asset bundle "removed url" could not be loaded because it is not compatible with this newer version of the Unity runtime. Rebuild the AssetBundle to fix this error.
I'm using Unity version 4.2.0f4.
Interestingly, I get that same error when I pass in a URL to a file that doesn't exist. I have tested the link that I'm downloading from, however, and it does work properly in a browser.
Anyone know what I need to do to get my asset bundles working again?
↧