Version: Unity 6 (6000.0)
Language : English
Native memory
Native memory allocators

Native memory introduction

The Unity engine’s internal C/C++ core has its own memory management system, called native memory. In most situations, you can’t directly access or modify this memory type.

Native memory isn’t automatically managed or subject to garbage collection. This means it’s difficult to profile and handle in a way that doesn’t cause memory leaks.

Unity uses different memory allocator types, which all use different algorithms to organize memory. Unity’s memory manager uses these allocator types in different areas to organize the memory in your application effectively.

To get greater control over how Unity allocates native memory, you can adjust the size of each allocation for each area. You can adjust the size of allocations either through the Player settingsSettings that let you set various player-specific options for the final game built by Unity. More info
See in Glossary
window in the Unity Editor, or through the command line. For more information, refer to Customizing allocators.

Additional resources

Native memory
Native memory allocators