# Initialize(int, int, bool, int)

> Initialize a Scratchpad.

## Definition

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

```csharp
[ExcludeFromBurstCompatTesting("Accesses managed delegate")]
public void Initialize(int numScratchpadAllocators, int initialSizeInBytes = 32768, bool isGlobal = false, int globalIndex = 0)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of ScratchpadAllocators the created Scratchpad should contain.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The initial size of the Scratchpad in bytes. Set to 32,768 by default.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Flag indicating if the allocator is a global allocator.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Base index into the global function table of the allocator to be created.
