Documentation

Unity Engine

Unity Engine

Allocator

Sets which allocation type to use for a NativeArray<T>.
Read time 1 minuteLast updated 4 days ago

Definition

public enum Allocator

Fields

Value

Description

AudioKernelUse an allocation associated with a DSPGraph audio kernel.
DomainUse an allocation that lasts until the next code reload.
FirstUserIndexThe first index that a custom allocator can get.
InvalidUse an invalid allocation.
NoneUse no allocation.
PersistentUse a persistent allocation.
TempUse a temporary allocation.
TempJobUse a temporary job allocation.