Hi,
I am working on a rather huge project with a lot of art. And when I say a lot of art I mean a lot. At the end of each scene we play one of 6 different ending animations. When we put all of the different animations into 1 Collection it crashes when it tries to load it due to running out of memory. The solution that we found was each clip inside the animation would have its own collection thus we only have to load 1 collection into memory at a time.
These are being created dynamically by loading the animation library via resources.load, then creating a game object, attaching a sprite component, adding an animator component, then setting the library of the component. When the sprite needs to show up we play the correct clip, which causes a pause while it loads the collection that that clip needs.
When leaving the scene, we switch to a loading scene which basically has nothing in it except a background and a few graphics from an unrelated sprite collection. For some reason if we go back out to the main menu, then back into the game the sprite collection that the animation uses is no longer in memory, but if we go from the loading screen back into the game, the previous collection is still in memory, thus when another ending animation is played it loads that collection into memory as well.
We are on unity 4.3 and 2d toolkit version 2.3.0.
Is there something that is causing sprite collection data to not be cleaned up correctly? When we disable the animated sprite the level works just fine and doesn't have any extra data on subsequent play throughs of the same level.