PoolBehaviour Class

Ultimate Pooling

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.
Inheritance Hierarchy
SystemObject  Object
    Component
      Behaviour
        MonoBehaviour
          UltimatePoolingPoolBehaviour

Namespace: UltimatePooling
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public class PoolBehaviour : MonoBehaviour, 
	IPoolReceiver
UltimatePooling.PoolBehaviour = function();

Type.createClass(
	'UltimatePooling.PoolBehaviour',
	UnityEngine.MonoBehaviour,
	UltimatePooling.IPoolReceiver);

The PoolBehaviour type exposes the following members.

Constructors
  NameDescription
Public methodPoolBehaviour
Initializes a new instance of the PoolBehaviour class
Top
Methods
  NameDescription
Public methodOnDespawned
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.
Public methodOnSpawned
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.
Top
Fields
  NameDescription
Public fieldStatic membermonoDespawnedEvent
The name of the event that is called when an object is returned to the pool.
Public fieldStatic membermonoSpawnedEvent
The name of the event that is called when an object is spawned from the pool.
Top
See Also