Spawn Pooling bonus code
Added 2019-10-01 16:39:11 +0000 UTCThese are just some of the many, many scripts I've built that I use a lot in spawning and despawning stuff. These should all be drop-in functional with PoolManager, unless they've changed their message names on the latest version or something.
SpawnLocationMarker- Simple way of marking a location in-world you want to spawn to later, including a static function to find a location by name. Eventually you might want to cache the returned list, though you'd need a lot of location markers before the cost mattered.
AutoDespawner - Just a parent class you'll need for some of these.
FollowingAutoDespawner - Because spawners work by enabled/disabled, actually parenting them under an object that can be disabled is tricky. What you WANT is for them to despawn when the parent disables, maybe after a short delay, but - yeah. So this solves for that by following the target without actually being childed to it.
TimedAutoDespawner - Exactly what it says on the tin. It despawns itself a fixed interval after spawning. Handy mostly for particles and FX stuff.
WhoIsYourDaddy - Sometimes you just need to be able to ask a spawned thing what spawn pool it belongs to. This does that.