- Home /
Import AssetBundle crashes Unity when built with 2018.4+
I used to build quite a few AssetBundles, but I haven't done it for a while, so I cannot reconstruct in which version the error started. However, when I build asset bundles for standalone (tried all version, except mac) Unity Editor crashes on loading them. All my old bundles work fine. Strangely enough WebGL target asset bundles work in the editor, but don't load in the compiled version (running on a linux machine). BuildTarget.NoTarget tells me, the required module is not installed. I tried setting the APi back to .Net 2.0, also crashes.
Answer by Blenderik · Jul 15, 2019 at 06:20 PM
After some hours of restarting I narrowed it down:
float outerDiameter = myInstantiatedMeshObject.GetComponen<MeshFilter>().mesh.bounds.size.y;
This completely crahes the editor.
This does not happen with any of my previous AssetBundles