|
Runtime Spawner 1.5.0
Generic Runtime spawn and instance pooling system for spawning random AI agents around a map. Works with ANY AI system easily.
|
Base class for factory assets that produce IObjectFactory instances at runtime. More...
Public Member Functions | |
| IObjectFactory | Create () |
| Creates and returns a new IObjectFactory instance. | |
Base class for factory assets that produce IObjectFactory instances at runtime.
This abstract ScriptableObject serves as a bridge between the Unity editor and runtime spawning systems. Derived classes implement Create to return a concrete IObjectFactory—for example, a pooled factory, a Photon PUN factory, or a Fusion-backed factory.
These assets are typically referenced by the RuntimeSpawner or SpawnProfile, allowing project-wide spawn configuration without hardcoding factory types into scenes.
Implementations should validate any required dependencies (e.g., active runner, pool adapters) inside Create and log meaningful errors if the factory cannot be constructed.
|
abstract |
Creates and returns a new IObjectFactory instance.
null if initialization fails.