unity-abstract-factory
Factory pattern for creating families of related objects. Supports both ScriptableObject composition and simple prefab instantiation.
Files4
View on GitHubSKILL.md.agent/skills/unity-abstract-factory/SKILL.md
GitHubUnity Abstract Factory
Minimal factory pattern implementation for object creation.
Core Features
- Generic Interface:
IFactory<T>for type-safe creation - SO-Based Factories: Data-driven object families
- Simple Prefab Factory: Quick GameObject spawning
Core Files (2 files)
Factory.cs.txt: Complete factory pattern (interface + SO base + prefab factory)EquipmentFactory.cs.txt: Example themed factory implementation
Usage
Inherit from Factory<T> for complex families, or use PrefabFactory for simple spawning.