Ultimate Pooling Scripting Reference
PoolGroupdestroyAll Method |
Attempts to destroy all pooled objects effectivley emptying the pool and resetting its state.
Note that 'OnDespawn' will not be called on the pooled objects. Instead you should handle any cleanup in 'OnDestroy'
Namespace: UltimatePooling
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0

public void destroyAll( bool keepSpawnedInstances = true )
function destroyAll(keepSpawnedInstances);
Parameters
- keepSpawnedInstances (Optional)
- Type: SystemBoolean
If true, all spawned objects created by this pool will also be destroyed
