Question by
valentin-simian · Aug 26, 2015 at 08:29 PM ·
listtexturesdestroy objectassetbundlesmemory management
Best practice for Destroying a List of Textures loaded from an Asset Bundle
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?
Comment