
This breaks down Unity's DOTS architecture with actual production patterns you'll need when moving from GameObject-based code to ECS. It covers the core shift from object-oriented to data-oriented design, shows proper ISystem implementation with Burst compilation, and handles the tricky bits like Entity Command Buffers for structural changes and Aspects for grouping related components. The examples focus on real scenarios like movement systems, entity spawning, and query optimization. If you're dealing with thousands of entities or need serious performance gains from parallelization, this gives you the concrete patterns to structure your ECS code properly instead of fighting the paradigm shift.
$ npx -y skills add wshobson/agents --skill unity-ecs-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Production patterns for Unity's Data-Oriented Technology Stack (DOTS) including Entity Component System, Job System, and Burst Compiler.
| Aspect | Traditional OOP | ECS/DOTS |
|---|---|---|
| Data layout | Object-oriented | Data-oriented |
| Memory | Scattered | Contiguous |
| Processing | Per-object | Batched |
| Scaling | Poor with count | Linear scaling |
| Best for | Complex behaviors | Mass simulation |
Entity: Lightweight ID (no data)
Component: Pure data (no behavior)
System: Logic that processes components
World: Container for entities
Archetype: Unique combination of components
Chunk: Memory block for same-archetype entities
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
Sponsors