NokiMo
Megan Fox
Megan Fox

patreon


Yes, this is really in my codebase

Someday, my intern is going to ask me about this function.

...

I... honestly don't know what I'm going to tell her.

If you want the long version, there's a big desc in the $3+ tier post, but the short less coder'y version is: this interacts with PoolManager, which is a Unity plugin I HIGHLY recommend you use: here 

and it lets me generically despawn stuff that I'm not 100% sure where it came from. Means I have to GetComponent<> this on despawn, which is slightly slow, so I won't do it anywhere I can safely assume where the thing came from, but for the cases where I need this functionality? Not even worth worrying about.

To any who would say this is totally dumb and shouldn't be in a codebase, I offer the following sage advice from The Governator:


Yes, this is really in my codebase

Related Creators