Ultimate Pooling Scripting Reference
UltimatePoolspawn Method (String, Vector3, Quaternion) |
Spawn an instance of a prefab with the specified name.
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, Vector3 position, Quaternion identity )
UltimatePooling.UltimatePool.spawn = function(prefabName, position, identity);
Parameters
- prefabName
- Type: SystemString
The name of the prefab to spawn from - position
- Type: Vector3
The position to spawn the prefab at - identity
- Type: Quaternion
The initial rotation to spawn the prefab with
Return Value
Type: GameObjectAn instance of the prefab with the specified name
See Also