Navigation
API > API/Runtime > API/Runtime/ChaosCore > API/Runtime/ChaosCore/Chaos > API/Runtime/ChaosCore/Chaos/TObjectPool
References
| Module | ChaosCore |
| Header | /Engine/Source/Runtime/Experimental/ChaosCore/Public/Chaos/ObjectPool.h |
| Include | #include "Chaos/ObjectPool.h" |
void ShrinkTo
&40;
int32 NumDesiredEmptyBlocks
&41;
Remarks
Shrinks the number of blocks All blocks that are not empty are kept, plus a number of empty blocks specified by the caller Passing zero will remove all empty blocks, leaving any non-empty blocks behind
Parameters
| Name | Description |
|---|---|
| NumDesiredEmptyBlocks | number of empty blocks to keep |