Ultimate Pooling Scripting Reference
PoolGroupdestroy Method |
Attempts to destroy a specific instance from the pool.
Note that 'OnDespawn' will not be called on the instance. Instead you should handle any cleanup in 'OnDestroy'
Namespace: UltimatePooling
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0

public void destroy( Object instance, bool keepSpawnedInstances = true )
function destroy(instance, keepSpawnedInstances);
Parameters
- instance
- Type: Object
The instance to remove from the pool - keepSpawnedInstances (Optional)
- Type: SystemBoolean
If true, the pool will also try to locate this instance in its spawned list
