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.
| ★ wanayoo — archive 1999 https://github.com/UnityPatterns/ObjectPool | Nouvelle recherche | Portail wanayoo |
Added DestroyPooled/DestroyAll …
Added two additional functions, one for destroying all pooled objects (thus removing them from the pool), and another which will do that and additionally destroy all spawned instances of a prefab as well.
| Failed to load latest commit information. | |||
|
|
Assets | Added DestroyPooled/DestroyAll | |
|
|
ProjectSettings | Big update. | |
|
|
.gitignore | Initial commit | |
|
|
LICENSE | Added license. | |
|
|
ObjectPool.userprefs | Big update. | |
|
|
README.md | Initial commit | |