|
Runtime Spawner 1.5.1
Generic Runtime spawn and instance pooling system for spawning random AI agents around a map. Works with ANY AI system easily.
|
ScriptableObject factory asset that creates a SinglePlayerPoolFactory instance. More...
Public Member Functions | |
| override IObjectFactory | Create () |
| Creates a new SinglePlayerPoolFactory using the default PoolAdapter implementation. | |
Public Member Functions inherited from MegaCrush.Spawner.ObjectFactoryAsset | |
| IObjectFactory | Create () |
| Creates and returns a new IObjectFactory instance. | |
ScriptableObject factory asset that creates a SinglePlayerPoolFactory instance.
This asset provides a convenient editor-facing way to configure and instantiate the single-player pooling factory used by the RuntimeSpawner system. It leverages the shared PoolAdapter from the Object Pool package to handle efficient reuse of spawned objects without network dependencies.
Suitable for local or offline projects where all spawning and despawning are handled on a single client without replication.
This asset can be created via the Unity menu: Create → Megacrush → Spawner → Factories → Single Player Pool Factory
| override IObjectFactory MegaCrush.Spawner.SinglePlayerPoolFactoryAsset.Create | ( | ) |
Creates a new SinglePlayerPoolFactory using the default PoolAdapter implementation.
RuntimeSpawner in single-player or offline contexts. If you wish to use a custom pooling implementation, you can modify this method to provide your own IPoolAdapter instance.