Skip to content

PhilSA/PoolTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating a pool

GameObjectPool<MyPoolable> myPool = new GameObjectPool<MyPoolable>();
myPool.CreatePool(50, MyPrefab, true, AutoResize, 1.5f);

Spawning from a pool

if (myPool.SpawnPoolable(out MyPoolable f))
{
    // Spawn successful
}

Recycling to pool

myPoolable.Pool.RecyclePoolable(myPoolable.IndexInPool);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages