Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetTotalAllocatedMemory()

Returns the amount of allocated and used system memory.
Read time 1 minuteLast updated 6 days ago

Definition

Warning
Deprecated. GetTotalAllocatedMemory has been deprecated since it is limited to 4GB. Please use GetTotalAllocatedMemoryLong() instead.
public static uint GetTotalAllocatedMemory()

Returns

Type

Description

uint

Remarks

The game uses the amount of memory returned by Profiler.GetTotalAllocatedMemory. As GameObjects are instantiated and other GameObjects loaded or created, the value returned increases, showing that more memory is being used.