DetectLeaks

Author: Joachim Ante, Berenger, Juha

Description
This script will displays the number of alloctated unity objects by type. This is useful for finding leaks. Knowing the type of object (mesh, texture, sound clip, game object) that is getting leaked is the first step. You could then print the names of all leaked assets of that type.

C# - DetectLeaks V1.0
The script _must_ be named DetectLeaks.cs

C# - DetectLeaks V1.1
FindObjectsOfTypeAll is obsolete. New version from Berenger on 07/03/2012 (Unity 3.5)

C# - DetectLeaks V2
The upper one isnt working correctly... Here is the actual Solution -> http://unity3d.com/support/documentation/ScriptReference/Resources.FindObjectsOfTypeAll

Slightly modified version to show every type of object and ordered (descending) by count. -Juha

C# - DetectLeaks V3
Brand new Editor version, kinda inspired by Juha's one. -Berenger