Spawner

Spawner subsystem for the Item System. Provides both an Inspector-based MonoBehaviour spawner and a static API for spawning items over the network via the Scriptable Factory framework.

Architecture

spinner

Data Flow

spinner

Key Concepts

Concept
Description

Instance Spawn

Uses a serialized FactorableSpawner configured in the Inspector. Spawns at the spawner's transform position. Has an Odin [Button] for play-mode testing.

Static Spawn

Spawns any item by ItemID via ItemDatabase lookup. No position is set — caller is responsible.

Network Spawning

Both paths use INetworkScriptableFactory.NetworkSpawn(), which handles Netcode object instantiation and replication.

Classes

Class
Description

MonoBehaviour + static API for network item spawning

See Also

Last updated