A generic object pooling to unity 3d
The proposal here was to create a simple generic pooling to be used in 2d unity projects.
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.
Take a look on live demo.
How to use
It's possible to use directly the GenericPooling.cs script or extending this script to specialize yours.
How to improve it?
Create a fork of unity-pooling.
Did you change it? submit a pull request.
Licensed under the MIT License.
0.0.1 First version.