# BlobBuilder(AllocatorHandle, int)

> Constructs a BlobBuilder object.

## Definition

* **Type:** Constructor
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public BlobBuilder(AllocatorManager.AllocatorHandle allocator, int chunkSize = 65536)
```

### Parameters

**** (\[AllocatorHandle]\(/engine/7000.0/script-reference/unity/collections/allocatormanager/allocatorhandle)): The type of allocator to use for the BlobBuilder's internal, temporary data. Use [Allocator.Temp](/engine/7000.0/script-reference/unity/collections/allocator/temp.md) unless the BlobBuilder exists across more than four Unity frames.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): (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.
