Object Pooling 1.2.0
Simple Object Pooling system for Unity Game Objects. It instantiates a pool of prefabs and manages their lifecycle.
Loading...
Searching...
No Matches
MegaCrush.ObjectPool.PoolObjects Class Reference

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
 

Detailed Description

Holds instances for a single prefab pool.

Member Function Documentation

◆ GetInstance()

GameObject MegaCrush.ObjectPool.PoolObjects.GetInstance ( )

Retrieve the next INACTIVE instance, activate it, and notify spawn handlers. Returns null if all instances are currently active.

Member Data Documentation

◆ currentIndex

int MegaCrush.ObjectPool.PoolObjects.currentIndex

◆ instances

List<GameObject> MegaCrush.ObjectPool.PoolObjects.instances

◆ settings

PoolObjectSetting MegaCrush.ObjectPool.PoolObjects.settings

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