Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AllocatorHelper(AllocatorHandle, bool, int)

Allocate the custom allocator from backingAllocator and register it.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Constructor
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
[ExcludeFromBurstCompatTesting("CreateAllocator is unburstable")]public AllocatorHelper(AllocatorManager.AllocatorHandle backingAllocator, bool isGlobal = false, int globalIndex = 0)

Parameters

backingAllocator

Allocator used to allocate backing storage.

isGlobal

Flag indicating if the allocator is a global allocator.

globalIndex

Index into the global function table of the allocator to be created.