Object Pooling 1.2.0
Simple Object Pooling system for Unity Game Objects. It instantiates a pool of prefabs and manages their lifecycle.
|
Holds instances for a single prefab pool. More...
Public Member Functions | |
GameObject | GetInstance () |
Retrieve the next INACTIVE instance, activate it, and notify spawn handlers. Returns null if all instances are currently active. | |
Public Attributes | |
PoolObjectSetting | settings |
List< GameObject > | instances |
int | currentIndex |
Holds instances for a single prefab pool.
GameObject MegaCrush.ObjectPool.PoolObjects.GetInstance | ( | ) |
Retrieve the next INACTIVE instance, activate it, and notify spawn handlers. Returns null if all instances are currently active.
int MegaCrush.ObjectPool.PoolObjects.currentIndex |
List<GameObject> MegaCrush.ObjectPool.PoolObjects.instances |
PoolObjectSetting MegaCrush.ObjectPool.PoolObjects.settings |