Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Initialize(int, bool)

Initializes the allocator. Must be called before first use.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public void Initialize(int initialSizeInBytes, bool enableBlockFree = false)

Parameters

initialSizeInBytes

The initial capacity of the allocator, in bytes

enableBlockFree

A flag indicating if allocator enables individual block free