Ultimate Pooling Scripting Reference
PoolBehaviour Class |
Intermediate behaviour script that allows spawn and despawn events to be received.
The events are broadcast to the object that is being re-used so the script can be at any level on the objects hierarchy.

Namespace: UltimatePooling
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0

public class PoolBehaviour : MonoBehaviour, IPoolReceiver
UltimatePooling.PoolBehaviour = function(); Type.createClass( 'UltimatePooling.PoolBehaviour', UnityEngine.MonoBehaviour, UltimatePooling.IPoolReceiver);
The PoolBehaviour type exposes the following members.

Name | Description | |
---|---|---|
![]() | PoolBehaviour | Initializes a new instance of the PoolBehaviour class |

Name | Description | |
---|---|---|
![]() | OnDespawned |
Called by the managing pool to notify that this object is about to be returned to the pool.
This method will not be called when the object is about to be destroyed.
|
![]() | OnSpawned |
Called by the managing pool to notify that this object has just been recycled from the pool.
This method will not be called when the object is created for the first time.
|

Name | Description | |
---|---|---|
![]() ![]() | monoDespawnedEvent |
The name of the event that is called when an object is returned to the pool.
|
![]() ![]() | monoSpawnedEvent |
The name of the event that is called when an object is spawned from the pool.
|
