Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zaratustra

Pages: [1]
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:

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.

Pages: [1]