Spawner

Serializable spawner subsystem that wraps a factory reference with variant selection and data override support. Provides a convenient, Inspector-configurable entry point for spawning factorable objects with customized data.

Architecture

spinner

Spawn Flow

spinner

Key Concepts

Concept
Description

Factory reference

The IScriptableFactory<TObject, TData> that actually creates objects

Variant index

Selects which data variant to use from the factory's variant system

Data override

Per-spawner field overrides applied on top of the selected variant

Baked data

Cached TData instance combining variant + overrides, reused across spawns

Classes

Class
Description

Serializable spawner with variant selection and data override support

See Also

  • Scriptable Factory — system overview

  • Variant — data override and variant system

  • IScriptableFactory<TObject, TData> — factory interface used by the spawner

Last updated