- Home /
Question by
james_cg · Jul 13, 2021 at 02:38 AM ·
assetbundleunload
assetbundle unload(true) make asset in another bundle missing reference
In my project, I use reference count to manage asset bundles, and unload true when ref is zero. this situation is tough to handle. Is this a bug or something I miss understand?
I have three bundle:
bundle name: texture : contains two textures
bundle name: material : a default material, reference two textures in texture
bundle name: cubebundle: a cube prefab, use material in material
First step: load three bundles, and Instatiate the cube prefab.
Next step: destroy the cube gameobject, and Unload True texture material.
Then : load texture material again, and Instatiate cube prefab. Now the cube gameobject has missing material reference.
Comment