PoolManager Class

Ultimate Pooling

PoolManager Class
The manager that is responsible for all pool groups and handles the creation and destruction of pools at runtime.
Inheritance Hierarchy
SystemObject  UltimatePoolingPoolManager

Namespace: UltimatePooling
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public sealed class PoolManager
UltimatePooling.PoolManager = function();

Type.createClass(
	'UltimatePooling.PoolManager');

The PoolManager type exposes the following members.

Methods
  NameDescription
Public methodcreatePool(String)
Attempts to create a new object pool for a prefab located in the resources folder. If a pool already exists for the specified prefab name then this method will simply return the existing pool.
Public methodcreatePool(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.
Public methodcreatePool(GameObject, String)
Attempt to create a new obejct pool for prefab type. If a pool already exists for the specified prefab then this method will simply return the exising pool.
Public methoddestroyPool
Destroys a pool group and call of its pooled instances.
Public methodfindPool(String)
Find the pool for the prefab with the specified name.
Public methodfindPool(Object)
Find the pool for the specified prefab.
Public methodfindPoolWithInstance
Find the pool that initially spawned the specified instance. This method will fail if the pool that spawned this instance has been destroyed. In this case it will be up to the user to destroy the object manually, or call despawn(Object) which will result in the same thing.
Public methodhasPool
Returns true if there is an existing pool for the specified prefab type.
Top
See Also