Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

SystemInfo.graphicsMemorySize

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static int graphicsMemorySize;

Description

Approximate amount of graphics memory available on the device, in MB.

The GPU driver provides this value. It represents the memory available for graphics use. On systems with a discrete GPU, this is typically the dedicated video memory (VRAM). On systems with an integrated GPU, including most mobile devices and many laptops, the GPU shares graphics memory with the main system memory. The platform determines the reported value. There is no separate property to distinguish dedicated VRAM from shared graphics memory. To query the total amount of system memory, use SystemInfo.systemMemorySize.

Note: On web platforms, this property returns a hardcoded fallback value. Web browsers don't allow access to the actual GPU memory size for security and privacy reasons. WebGL returns 512 MB, and WebGPU returns 128 MB. Treat these values as safe minimal approximations rather than the actual available VRAM.

Additional resources: SystemInfo.systemMemorySize.