- Home /
How to load an assetbundle from disk?
Hi 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: http://docs.unity3d.com/Documentation/Manual/BuildingAssetBundles.html
Thanks in advance
Answer by Graham-Dunnett · Jun 07, 2013 at 10:00 AM
You need to pass this into the call to BuildPipeline.BuildAssetBundle
.
Your answer
Follow this Question
Related Questions
How to, tell apart, Instance or Instantiated GameObject vs Loaded GameObject. 0 Answers
Getting the assets inside a bundle from unity 5 vs Unity 4 0 Answers
is that possible to load prefab from script. 1 Answer
Deserialize .XML file from AssetBundle? 0 Answers
I want to load object from my computer or google drive. 1 Answer