1
Support / Sprite Collection refuses to unload from memory
« on: August 04, 2014, 05:18:41 pm »
I have a sprite collection that refuses to unallocate itself from memory once it's there. (Well actually all of them do that, but this one needs to be out.)
Destroying every GameObject that holds a sprite in that collection does nothing.
If I do this, the sprite collection does vanish from memory, but then when I come back to the scene it refuses to load again:
I have been butting heads with this for a week and would really appreciate some insight into the situation.
Destroying every GameObject that holds a sprite in that collection does nothing.
If I do this, the sprite collection does vanish from memory, but then when I come back to the scene it refuses to load again:
Code: [Select]
MapTileCollection = tk2dSystem.LoadResourceByName<tk2dSpriteCollectionData>("MapTileCollection");
MapTileCollection.UnloadTextures();
MapTileCollection.ResetPlatformData();
I have been butting heads with this for a week and would really appreciate some insight into the situation.