Allocator
Sets which allocation type to use for a NativeArray.
Read time 1 minuteLast updated 5 days ago
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. |