文档

Unity Engine

Unity Engine

Persistent

Use a persistent allocation.
阅读时间1 分钟最后更新于 1 个月前

Definition

Persistent = 4

Remarks

The slowest allocation but can last as long as you need it to, and if necessary, throughout the application's lifetime. It's a wrapper for a direct call to malloc. Longer jobs can use this NativeContainer allocation type. Don't use Persistent where performance is essential.