文档

Unity Engine

Unity Engine

Allocator

Sets which allocation type to use for a NativeArray<T>.
阅读时间1 分钟最后更新于 4 天前

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.