Ultimate Pooling Scripting Reference
UltimatePoolspawn Method (GameObject, Vector3, Quaternion) |
Spawn an instance of the specified prefab from the appropriate pool.
If no pool exists, then one is automatically created for the prefab type.
Namespace: UltimatePooling
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0

public static GameObject spawn( GameObject prefab, Vector3 position, Quaternion rotation )
UltimatePooling.UltimatePool.spawn = function(prefab, position, rotation);
Parameters
- prefab
- Type: GameObject
The prefab to spawn from - position
- Type: Vector3
The position to spawn the prefab at - rotation
- Type: Quaternion
The initial rotation to spawn the prefab with
Return Value
Type: GameObjectAn instance of the prefab supplied
