UltimatePool.despawnAll Method (GameObject, Single)

Ultimate Pooling

UltimatePooldespawnAll Method (GameObject, Single)
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
Syntax
public static void despawnAll(
	GameObject prefab,
	float time
)
UltimatePooling.UltimatePool.despawnAll = function(prefab, time);

Parameters

prefab
Type: GameObject
The prefab to despawn all instances of
time
Type: SystemSingle
The amount of time to wait before despawning
See Also