Ultimate Pooling Scripting Reference
UltimatePoolspawnT Method (Component) |
Spawn an instance of the specified component 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 T spawn<T>( Component prefab ) where T : Object
JavaScript does not support generic types or methods.
Parameters
- prefab
- Type: Component
The component prefab to spawn from
Type Parameters
- T
- The type of object to return the instance as
Return Value
Type: TAn instance of the prefab supplied
