Object Pooling¶
A simple object pooling solution for both regular objects as well as GameObjects.
Class | Purpose |
---|---|
PoolHelper | A convenient global pool manager for GameObjects. |
PoolHelper<T> | A convenient global pool manager for regular objects with empty constructors. |
Pool<T> | A simple object pool for any type of objects that supports custom factory methods, event callbacks and timed despawns. |
GameObjectPool<T> | A subclass of Pool<T> that supports GameObjects. |
IPoolable | An interface that poolable classes can implement to get notified when they’re spawned or despawned. |
PoolableGroup | A helpful component in case you want multiple IPoolable components to receive callbacks. |