What's the point of Unity's Pooling Interface?

I fail to see how Unity’s new pool interface makes anything easier, to me, it makes everything even worse because now we have our classes dealing with methods they shouldn’t deal with.

Can someone please elaborate a little bit more on how this is more useful or easier than creating my own pooling class? I would be writing the exact same methods, I honestly don’t see the point.

The main thing I see is standardization. If it all works the same way, then it all works the same way and it’ll then (in theory) be easier to recycle code…

1 Like

That’s pretty much it in a nutshell. There are a LOT of Factory patterns out there, the new Pool interface is just Unity’s throwing their hat in the ring. (what took them so long??)
In my 2021 projects, I use it. In the past, I’ve generally rolled my own pooling factories custom to whatever job I’m working on.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms