- Home /
unity2017 assetbundle unload problem
enviroment:Mac untiy: 2017.1.2p2 It seems that when i load a assetbundle(contains lots of textures⪯fabs),and then LoadAllAssets,after that,Unload(flase) immediately,some errors will be threw: *Assertion failed: Cancelling DisplayDialog because it was run from a thread that is not the main thread: Opening file failed Opening file /Users/xxxxx/work/U3D/local/ABTest/archive:/CAB-6ca2e5051e0aec3cb8faba0077f4370f/CAB-6ca2e5051e0aec3cb8faba0077f4370f.resS: No such file or directory Could not open file archive:/CAB-6ca2e5051e0aec3cb8faba0077f4370f/CAB-6ca2e5051e0aec3cb8faba0077f4370f.resS for read
Assertion failed: Cancelling DisplayDialog because it was run from a thread that is not the main thread: Opening file failed Opening file /Users/xxxxxx/work/U3D/local/ABTest/archive:/CAB-6ca2e5051e0aec3cb8faba0077f4370f/CAB-6ca2e5051e0aec3cb8faba0077f4370f.resS: No such file or directory* But ,the same project i test in unity 5.6.3,everything is ok.. Has anyone else has this problem? here is my code: if(GUILayout.Button("Load First")){ AssetBundle b = AssetBundle.LoadFromFile(Application.dataPath+"/ui/_firstres.ab"); b.LoadAllAssets(); b.Unload(false); //error ! }
Your answer
![](https://koobas.hobune.stream/wayback/20220612142853im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
AssetBundle loading in Unity5 1 Answer
Loading images from AssetBundle 1 Answer
[Asset Bundle] unable to download from server 1 Answer
Upgrade asset bundle from Unity 5.5 to Unity 2017.9 0 Answers