기술 자료

Unity Engine

Unity Engine

GetTotalAllocatedMemory()

Returns the amount of allocated and used system memory.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

경고
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.