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.
Loading...
Searching...
No Matches
MegaCrush.Spawner.SinglePlayerPoolFactoryAsset Class Referencesealed

ScriptableObject factory asset that creates a SinglePlayerPoolFactory instance. More...

Inheritance diagram for MegaCrush.Spawner.SinglePlayerPoolFactoryAsset:
MegaCrush.Spawner.ObjectFactoryAsset

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.
 

Detailed Description

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

Member Function Documentation

◆ Create()

override IObjectFactory MegaCrush.Spawner.SinglePlayerPoolFactoryAsset.Create ( )

Creates a new SinglePlayerPoolFactory using the default PoolAdapter implementation.

Returns
A configured IObjectFactory ready for use by the 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.


The documentation for this class was generated from the following file: