Instead of creating and destroying new objects all the time, this script reduces garbage by pooling instances, allowing you to seemingly create hundreds of new objects while only actually using a recycled few.
C#
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Assets Added DestroyPooled/DestroyAll Nov 13, 2014
ProjectSettings Big update. Aug 2, 2014
.gitignore Initial commit Sep 26, 2013
LICENSE Added license. Sep 28, 2013
ObjectPool.userprefs Big update. Aug 2, 2014
README.md Initial commit Sep 26, 2013

README.md

ObjectPool

Instead of creating and destroying new objects all the time, this script reduces garbage by pooling instances, allowing you to seemingly create hundreds of new objects while only actually using a recycled few.