Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

UnsafeUtility.CheckForLeaks

Declaration

public static int CheckForLeaks();

Returns

int The number of leaks found.

Description

Gets a list of memory leaks.

Any memory allocated before this call that hasn't already been freed, is assumed to have leaked.