Object Pool Clear All
Clears all object pools. Inactive pooled objects are destroyed. Optionally destroy active spawned objects too.
Parameters
| Parameter | Description |
|---|---|
| Include Inactive | Also destroy active spawned objects currently in the scene. Normally spawned object have their own life-cycle that you want to keep. Use this to destroy spawned objects immediately. |
Usages
You might use this between levels to make sure all object pools are cleared and you're starting the next level with a clean slate.