Pro Pooling
ProPooling.IPoolComponent Interface Reference

This can be used for setting / resetting and cleaning up state when objects are taken into use. More...

Inheritance diagram for ProPooling.IPoolComponent:
ProPooling.Components.DespawnAfterCollision ProPooling.Components.DespawnAfterCollision2D ProPooling.Components.DespawnAfterDelay ProPooling.Components.OnDespawnResetRigidbody ProPooling.Components.OnDespawnResetRigidbody2D ProPooling.Components.OnDespawnResetTransform ProPooling.Components.OnSpawnEnableChildren

Public Member Functions

void OnSpawned (PoolItem poolItem)
 Called when the gameobject containing the component is spawned from a pool More...
 
void OnDespawned (PoolItem poolItem)
 Called when the gameobject containing the component is returned to a pool More...
 

Detailed Description

This can be used for setting / resetting and cleaning up state when objects are taken into use.

Implement this interface on a component to automatically have the corresponding methods called when the components gameobject is either spawned from the pool for use, or despawned back to the pool.

Member Function Documentation


The documentation for this interface was generated from the following file: