Allocator
Sets which allocation type to use for a NativeArray.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Enum
- Namespace: Unity.Collections
- Assembly: UnityEngine.CoreModule
public enum Allocator
Fields
Value | Description |
|---|---|
| AudioKernel | Use an allocation associated with a DSPGraph audio kernel. |
| Domain | Use an allocation associated with the lifetime of a domain. |
| FirstUserIndex | The first index that a custom allocator can get. |
| Invalid | Use an invalid allocation. |
| None | Use no allocation. |
| Persistent | Use a persistent allocation. |
| Temp | Use a temporary allocation. |
| TempJob | Use a temporary job allocation. |