Skip to main content

Managers

📄️ Pool Manager

Pooling objects means reusing game objects instead of instantiating and destroying them every time when they are needed. As Unity's garbage collector is very performance-heavy and could result in serious hiccups and dropping frames during the game, this asset implements strict pooling (activation/deactivation) for game objects needed multiple times in one scene. Thus instantiate and destroy should be replaced by PoolManager.Spawn() and PoolManager.Despawn(). Setting up object pooling in your scene is very easy: