oddgames / UIToolkit

Single draw call UI solution for Unity with multi resolution support and more.
518 stars 153 forks source link

Memory Leak? #145

Open FredsonLaguna opened 11 years ago

FredsonLaguna commented 11 years ago

I was using this script to check for memory leaks in my game:

http://wiki.unity3d.com/index.php?title=DetectLeaks

and I found that "UnityEngine.Mesh" and "UnityEngine.Material" objects keep increasing everytime I load into one of my levels. At first I thought it was something I did so I used the same script above in the KitchenSink demo level and kept loading into it and noticed that it also wasn't being freed. Any ideas on what's causing this?

You can actually just use the profiler instead of the script: image

FredsonLaguna commented 11 years ago

are there any general guidelines to follow to avoid memory leaks while using UItoolkit?