Initialize(int, int, bool, int)
Initialize a Scratchpad.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
[ExcludeFromBurstCompatTesting("Accesses managed delegate")]public void Initialize(int numScratchpadAllocators, int initialSizeInBytes = 32768, bool isGlobal = false, int globalIndex = 0)
Parameters
The number of ScratchpadAllocators the created Scratchpad should contain.
The initial size of the Scratchpad in bytes. Set to 32,768 by default.
Flag indicating if the allocator is a global allocator.
Base index into the global function table of the allocator to be created.