UltimatePool.spawn(T) Method (Component, Vector3, Quaternion)

Ultimate Pooling

UltimatePoolspawnT Method (Component, Vector3, Quaternion)
Spawn an instance of the specified component prefab from the appropriate pool. If no pools exists, then one is automatically created for the component prefab type.

Namespace: UltimatePooling
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public static T spawn<T>(
	Component prefab,
	Vector3 position,
	Quaternion rotation
)
where T : Object
JavaScript does not support generic types or methods.

Parameters

prefab
Type: Component
The component 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

Type Parameters

T
The type of object to return the instance as

Return Value

Type: T
An instance of the component prefab supplied
See Also