x


Unable to free resources from memory

I have a game with several levels. Each time I load or switch to a new level, the textures and resources from the previous level remain in memory. To the point that when I'm on the final level, it's as if I have loaded every resource in my game and then I get a crash with "Out of memory" error. I'm not using Resources.Load or AssetBundles, and Resources.UnloadUnusedAssets doesnt work. I just plop my game objects with textures into the scene. Is this a bad thing to do? Do I have to dynamically load my textures and resources to make sure that they are freed when loading a new level? I wouldn't imagine so, I thought this is what Unity was for. But this is causing me huge problems. Any help is appreciated.

more ▼

asked Jan 05 '12 at 07:48 PM

JesseX gravatar image

JesseX
16 1 2 2

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3891
x2278
x344
x223
x34

asked: Jan 05 '12 at 07:48 PM

Seen: 933 times

Last Updated: Jan 05 '12 at 07:48 PM