Quantcast
Channel: Questions in topic: "assetbundles"
Viewing all articles
Browse latest Browse all 312

Best practice for Destroying a List of Textures loaded from an Asset Bundle

$
0
0
So I'm loading a collection of Textures from an AssetBundle and storing them in a List, the user chooses one of these textures and then they're no longer needed. Obviously I want to get rid of the unused Textures, but Destroying them as objects causes some strange data loss. If I set the list to null, will it release those textures that used to be in it from memory? Or is there another recommended practice?

Viewing all articles
Browse latest Browse all 312

Trending Articles



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