UltimatePool.spawn Method (String)

Ultimate Pooling

UltimatePoolspawn Method (String)
Spawn an instance of a prefab with the specified name. The prefab name is the same name used when creating the pool, or if no name is used then the name of the prefab supplied is substituted. This method will only succeed if the pool has been created before hand.

Namespace: UltimatePooling
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public static GameObject spawn(
	string prefabName
)
UltimatePooling.UltimatePool.spawn = function(prefabName);

Parameters

prefabName
Type: SystemString
The name of the prefab to spawn from

Return Value

Type: GameObject
An instance of the prefab with the specified name
See Also