NokiMo
Megan Fox
Megan Fox

patreon


Ok, but WHY is that dumb joke useful

Alright, so what we're doing here is simple. This leverages the latest version of PoolManager (here) which is an INCREDIBLY handy plugin for Unity. If I were to tell people to buy just one plugin, it'd be this one, because you NEED this to work around a major limitation of Unity. Namely, that Instantiate() is pretty slow and causes hitches, and this lets you Spawn/Despawn tons of stuff while frontloading any related Instantiation lag into your scene load under a nice load screen.

Really, really important stuff. Sure, you could write your own, but... seriously, this plugin is really, really well thought out. It'd probably take you weeks to stumble onto something equally as polished from scratch. So consider it.

Anyways, I need the ability to despawn fists generically, since I just added a way to spawn fists as either "for attaching to camera" or "for sitting in the world". I want the interface to be mostly transparent for anyone using the system, since the difference between the two sorts of fists is sort of arcane, which means when they give me a fist to despawn, I need to know which pool it came from without them being able to explain it to me. So I just GetComponent<> this and ask it who is its daddy and what does it do.

... and, yes, it's a very dumb joke, and yes, it is in fact enshrined in my codebase forever. To all future coders who find this in the engine and are all:

... my response shall simply be:


Ok, but WHY is that dumb joke useful

Related Creators