YIn this video, I'm going to show the new object pool version to replace the first one that was created in 2023
The key changes include:
Use of Guid as pools key
Use of GameObject.GetInstanceID to handle returned objects
Added parameter to set the pool objects parent transform
Removed Pool generics
You can get the package and source code files here: https://github.com/Lasanha-Dev/Unity-ObjectPool
You can check the old version here: https://www.youtube.com/watch?v=uOiXN3kuM2o
If you have any questions or suggestions, just drop a comment down below.
00:00 Object Pool Class
03:10 PoolableObject
03:41 Demonstration