文档

Unity Engine

Unity Engine

Initialize(int, bool)

Initializes the allocator. Must be called before first use.
阅读时间1 分钟最后更新于 1 个月前

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