Version: Unity 6.2 Alpha (6000.2)
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
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961