I stumbled across the UnityEngine.Pool.ObjectPool class today in the API, and I’m wondering if there is an example of how the ObjectPool class in this lecture could be rewritten to implement it.
Hi,
There is an example on the linked page. Have you already tried to replace the ParticleSystem objects with the enemy game objects?
Nina,
Thanks for the reply! The reason I’m taking this course is that I do not understand how to read the API and was hoping to see an applicable example to the game I’m making as a part of the class.
But no, I haven’t replaced the Particle System with enemy game objects yet. Is that a part of an upcoming lesson?
No, we are creating our own object pool class and do not use Unity’s ObjectPool class.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.