Skip to content

bornacvitanic/ObjectPoolingForUnity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ObjectPoolingForUnity

Twitter: @BCvitanic

A object pooling system for Unity using Scriptabe objects to automatically keep track of max instance counts per prefab each session.

Add a object pooler script to an object in the scene and provide it a transform as a parent for all pooled object and an instance of a ObjectPoolPrefabList SO to keep track of max instance counts over sessions.

To pool an instance use:

 var instance = ObjectPooler.SharedInstance.Instantiate(prefab);

And to return it to the pool use:

 ObjectPooler.SharedInstance.ReturnToPool(instance);

About

A object pooling system for Unity using Scriptabe objects to automatically keep track of max instance counts per prefab each session.

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages