文档

Unity Engine

Unity Engine

GetTotalReservedMemory()

Returns the amount of reserved system memory.
阅读时间1 分钟最后更新于 1 个月前

Definition

警告
Deprecated. GetTotalReservedMemory has been deprecated since it is limited to 4GB. Please use GetTotalReservedMemoryLong() instead.
public static uint GetTotalReservedMemory()

Returns

Type

Description

uint

Remarks

Unity requests the amount of memory that the game will use. Profiler.GetTotalReservedMemory is the full amount that Unity currently has. Part of this memory is used by the game using Profiler.GetTotalAllocatedMemory, and the remainer is stored and unused.