Group Group Group Group Group Group Group Group Group

Object Pooling query

Hello! As a new member to the forums it seems that creating a new topic in Official Tutorials is locked, so apologies this is the second best place to post it (and if this topic is moved or taken down, oh well).

I have a query relating to the ‘Object Pooling in Unity’ tutorial. I’ve been using this code in every Unity project for a couple of years and it works very well, but due to pooled objects being gotten by their ‘tags’, I end up creating 30+ tags and it gets very cluttered quite quickly.

Is there a way to edit the object pooling code to avoid or replace using tags?

Thanks.