Quantcast
Channel: Questions in topic: "assetbundle"
Viewing all articles
Browse latest Browse all 1593

Loaded asset from assetbundle didn't unload even set to null

$
0
0
Hi, I use assetbundle to load my prefab as gameobject,
and keep the reference by my class's member.

And I set a UIButton to unload loaded gameobject memory and unload assetbundle.
First, I **set null to the gameobject member**, for reset reference count to zero;
Then I use coroutine to wait to next frame, and use **assetBundle.unload(false)** to unload everything unuse.

when I check the profilier, the gameobject I loaded from assetbundle, still exists.
how can I **extactly unload this unuse loaded prefab gameobject**?

Viewing all articles
Browse latest Browse all 1593

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>