Package can be installed with Unity Package Manager:
https://github.com/Hot-G/G-Pooler.git#upm
Drag Object Pooler Prefab to Scene (G-Pooler/Runtime/Prefabs), It’s done!
- Create a Resources folder (It doesn't matter where you created the folder)
- Whatever object you want to add to the pool, make it Prefab.
- Then add the Pool Object Script to Prefab and make the necessary adjustments.
The basic setup should be complete.
- Pool Tag: The tag you will use to add or pull the object from the pool.
- Object To Pool: The object you want to add to the pool.
- Amount To Pool: The number of objects you want to create.
Expand Type: There are 3 Expand types:
- None: If there is no object to use, it returns null.
- Expand: If there is no object to use, it creates a new object.
- Use Last: If there is no object to use, it returns the last used object.
If you want to pull an object from the pool, you can use the
ObjectPooler.GetPoolObject<T>
command.



