How to load an assetbundle from disk?

I’m experimenting with assetbundles. I don’t really want to load from WWW, so I want to load from disk. I’m using the Assetbundle.createfromfile() function but it gives me the error that the bundle wasn’t created with the UncompressedAssetbundle flag.

This is my code

AssetBundle assets = AssetBundle.CreateFromFile("Assets/MapMode.unity3d"); assets.LoadAll();

I use the following script to build:

Thanks in advance

You need to pass this into the call to BuildPipeline.BuildAssetBundle.