Click or drag to resize
PoolManager Class
The PoolManager class is the interface into the Wow Such Object Pooling system.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          WowSuch.ObjectPoolingPoolManager

Namespace: WowSuch.ObjectPooling
Assembly: WowSuch.ObjectPooling (in WowSuch.ObjectPooling.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class PoolManager : MonoBehaviour

The PoolManager type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreatePool(GameObject)
Creates a pool which references 'original' if one does not already exist. Uses PoolManager.DefaultOptions.
Public methodStatic memberCreatePool(GameObject, Options)
Creates a pool which references 'original' if one does not already exist. Uses the specified 'options'.
Public methodStatic memberDestroy
Returns 'gameObject' to its pool. The 'gameObject' will receive its OnDestroy message as indicated by its pool's Options. Intended to be functionally identical to Object.Destroy.
Public methodStatic memberDestroyAllPools
Destroys all pools in Object Pool system, as well as all GameObjects referenced by those pools.
Public methodStatic memberDestroyPool(Int32)
Destroys the pool with the ID 'm_id' if it exists. Also destroys all GameObjects created for the pool.
Public methodStatic memberDestroyPool(GameObject)
Destroys the pool which references 'original' if it exists. Also destroys all GameObjects created for the pool.
Public methodStatic memberGetAllPoolIDs
Gets the ID of all pools loaded in the system.
Public methodStatic memberGetPoolInfo
Get information on the pool with the ID 'm_id'.
Public methodStatic memberInstantiate(GameObject)
Clones 'original' and returns the clone. A Pool will be created for 'original' if none exists. Uses PoolManager.DefaultOptions. Intended to be functionally identical to GameObject.Instantiate.
Public methodStatic memberInstantiate(GameObject, Vector3, Quaternion)
Clones 'original' and returns the clone. A Pool will be created for 'original' if none exists. Uses PoolManager.DefaultOptions. Intended to be functionally identical to GameObject.Instantiate.
Public methodStatic memberPoolExists(Int32)
Checks if a pool with the ID 'm_id' exists.
Public methodStatic memberPoolExists(GameObject)
Checks if a pool which references 'original' exists.
Public methodStatic memberRequestObject(Int32)
Request a GameObject from the pool with ID 'm_id'.
Public methodStatic memberRequestObject(Int32, Vector3, Quaternion)
Request a GameObject from the pool with ID 'm_id'.
Public methodStatic memberResizePool
Resizes the pool with ID 'm_id' to size 'size'. Specifying a size smaller than the pool's size will destroy inactive GameObjects first, and then active GameObjects if needed. Use with caution.
Public methodStatic memberReturnObject
Returns 'gameObject' to its pool. The 'gameObject' will receive its OnDestroy message as indicated by its pool's Options.
Top
Properties
  NameDescription
Public propertyStatic memberdefaultOptions
Returns a copy of the options specified by the DefaultPoolOptions ScriptableObject.
Top
See Also