Click or drag to resize

ComponentPoolManager Methods

[This is preliminary documentation and is subject to change.]

The ComponentPoolManager type exposes the following members.

Methods
  NameDescription
Public methodAcquire(TSource)
Acquires an instance of source from an attached pool.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Public methodAcquire(Type, Transform)
Acquires an instance of componentType from an attached pool, and sets its parent transform.
Public methodAcquire(Type, Vector3, Quaternion)
Acquires an instance of componentType from an attached pool, and sets its position and rotation.
Public methodAcquire(Type, Transform, Vector3, Quaternion)
Acquires an instance of componentType from an attached pool, and sets its parent transform, position and rotation.
Public methodAcquire<T>()
Acquires an instance of the component T from an attached pool.
Public methodAcquire<T>(Transform)
Acquires an instance of the component T from an attached pool, and sets the parent transform of its GameObject.
Public methodAcquire<T>(Vector3, Quaternion)
Acquires an instance of the component T from an attached pool, and sets the position and rotation of its GameObject.
Public methodAcquire<T>(Transform, Vector3, Quaternion)
Acquires an instance of the component T from an attached pool, and sets the parent transform, position and rotation of its GameObject.
Public methodAttachPool
Attaches the specified pool to the manager, allowing the manager to acquire and release instances from it.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Protected methodAwake (Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Public methodCanAcquire
Determines whether an instance of sourceObject can be acquired from its pool.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Public methodCreatePool(Type)
Creates a ComponentPool that pools instances of componentType, and attaches it to the manager. The pool is created on a child object of the manager's game object.
Public methodCreatePool(TPoolSettings)
Creates a new pool using the specified settings, and attaches it to the manager. The pool is created on a child object of the manager's game object.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Public methodCreatePool(Type, GameObject, Boolean)
Creates a ComponentPool that pools instances of componentType, and attaches it to the manager.
Public methodCreatePool(TPoolSettings, GameObject, Boolean, String)
Creates a new pool using the specified settings, and attaches it to the manager.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Public methodDestroyPool
Destroys the specified pool that's attached to the manager.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Public methodDetachPool
Detaches the specified pool from the manager, without destroying it.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFindChildPools
Finds all pools that are parented to the manager's game object.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetPool
Gets the pool that handles instances of the specified source object. The manager must contain a matching pool to use this method.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Public methodGetPooledCount
Gets the number of instances of the specified object contained in the pool.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Protected methodGetSourceName
When implemented in a derived class, gets the name of the specified source.
(Overrides PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.GetSourceName(TSource).)
Public methodGetType (Inherited from Object.)
Public methodHasPool
Determines whether the manager has a pool that handles instances of the specified source object.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Protected methodInternalAcquire
When implemented in a derived class, attempts to acquire an instance of a source according to AcquireMode.
(Overrides PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.InternalAcquire(TSource, TPool, TInstance).)
Public methodIsAttached
Determines whether the specified pool is attached to the manager.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Public methodIsPoolEmpty
Determines whether the pool is empty for instances of the specified object.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnPoolAttached
Raises the PoolAttached event.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Protected methodOnPoolCreated
Raises the PoolCreated event.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Protected methodOnPoolDestroyed
Raises the PoolDestroyed event.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Protected methodOnPoolDetached
Raises the PoolDetached event.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Public methodRelease
Releases an instance that was previously acquired from an attached pool.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Protected methodReleaseInternal
Releases an instance of a component that was previously acquired from an attached pool.
(Overrides PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.ReleaseInternal(TInstance).)
Public methodToString (Inherited from Object.)
Public methodTryAcquire(TSource, TInstance)
Acquires an instance of sourceObject from an attached pool.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Public methodTryAcquire(Type, Transform, Component)
Acquires an instance of componentType from an attached pool, and sets its parent transform.
Public methodTryAcquire(Type, Vector3, Quaternion, Component)
Acquires an instance of componentType from an attached pool, and sets its position and rotation.
Public methodTryAcquire(Type, Transform, Vector3, Quaternion, Component)
Acquires an instance of componentType from an attached pool, and sets its parent transform, position and rotation.
Public methodTryAcquire<T>(T)
Acquires an instance of the component T from an attached pool.
Public methodTryAcquire<T>(Transform, T)
Acquires an instance of the component T from an attached pool, and sets the parent transform of its GameObject.
Public methodTryAcquire<T>(Vector3, Quaternion, T)
Acquires an instance of the component T from an attached pool, and sets the position and rotation of its GameObject.
Public methodTryAcquire<T>(Transform, Vector3, Quaternion, T)
Acquires an instance of the component T from an attached pool,, and sets the parent transform, position and rotation of its GameObject.
Public methodTryGetPool
Gets the pool that handles instances of the specified source object.
(Inherited from PoolManagerBase<TManagerSettings, TPool, TPoolSettings, TSource, TInstance>.)
Top
See Also