Ultimate Pooling Scripting Reference
UltimatePooldespawnAll Method (GameObject) |
Calls all spawned instances of the specified prefab back to their pool.
This method allows you to pass a prefab such as a 'Bullet' which will subsequently cause all 'Bullet' instances to be despawned.
Namespace: UltimatePooling
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0

public static void despawnAll( GameObject prefab )
UltimatePooling.UltimatePool.despawnAll = function(prefab);
Parameters
- prefab
- Type: GameObject
The prefab to despawn all instances of
