Ultimate Pooling Scripting Reference
PoolManagercreatePool Method (Component, String) |
Attempts to create a new object pool for the component prefab type.
If a pool already exists for the specified prefab then this method will simply return the existing pool.
Namespace: UltimatePooling
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public PoolGroup createPool( Component prefab, string name = "" )
function createPool(prefab, name);
Parameters
- prefab
- Type: Component
The prefab to create the pool for - name (Optional)
- Type: SystemString
The name of the pool
Return Value
Type: PoolGroupAn instance of a pool group
See Also