Shared data assets
Related terms: data-driven design, configuration, ScriptableObject
Reusable assets hold configuration that many objects read: weapon damage, enemy statistics or item descriptions. Each instance keeps a reference to the same data instead of copying it. Designers can tune one asset and update every object that uses it. Unity’s ScriptableObject is one implementation.
Keep shared definitions separate from changing per-instance state. Two swords may share damage and an icon while retaining different durability values. Accidentally storing durability in the shared asset makes both swords change together. These assets complement prefabs; they are not automatically a player save system.
- Further reading
- Unity: ScriptableObject