Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Profiler.usedHeapSizeLong

public static long usedHeapSizeLong;

Returns

long Size of the memory allocated by Unity (or 0 if the profiler is disabled).

Description

Returns the number of bytes that Unity has allocated. This does not include bytes allocated by external libraries or drivers.

Did you find this page useful? Please give it a rating: