Object Pooling

I have been reading about object pooling a lot recently as I am experiencing lag spikes in my iOS game. I understand the concept of it but am a little confused as to how it actually works. I would appreciate it if someone could please give me a basic rundown on how to make pooling work. Specifically what to attach the scripts to i.e on the prefab I am using or an empty game object? And which scripts are required.

Thank you in advance for your help

it’s a critical and basic topic indeed

there is a massive book-length discussion here …

hope it helps! all I ask is that you “tick up” that answer if you like it - I am desperate to see “10” on an answer :slight_smile: heh