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

Script language

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

Profiler.GetTotalReservedMemoryLong

public static long GetTotalReservedMemoryLong();

Returns

long Memory reserved by Unity in bytes. This returns 0 if the Profiler is not available.

Description

The total memory Unity has reserved.

This function returns the total memory Unity has reserved for current and future allocations. If the reserved memory is fully used, Unity will allocate more memory from the system as required.

no example available in C#

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