ドキュメント

Unity Engine

Download Unity

Unity Engine

BlobBuilder(AllocatorHandle, int)

Constructs a BlobBuilder object.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Constructor
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public BlobBuilder(AllocatorManager.AllocatorHandle allocator, int chunkSize = 65536)

Parameters

The type of allocator to use for the BlobBuilder's internal, temporary data. Use Allocator.Temp unless the BlobBuilder exists across more than four Unity frames.

chunkSize

(Optional) The minimum amount of memory to allocate while building an asset. The default value should suit most use cases. A smaller chunkSize results in more allocations; a larger chunkSize could increase the BlobBuilder's total memory allocation (which is freed when you dispose of the BlobBuilder.