unity-ecs-patterns

Installation
Summary

High-performance game development with Unity's data-oriented Entity Component System, Jobs, and Burst Compiler.

  • Covers core ECS patterns including components, systems, entities, and archetypes, with practical examples for movement, spawning, damage, and inventory management
  • Demonstrates both simple foreach queries and explicit job scheduling with IJobEntity and IJobChunk for fine-grained parallelization control
  • Includes baking workflows to convert GameObjects to entities, singleton management, aspects for component grouping, and entity command buffers for deferred structural changes
  • Provides spatial hashing, native collections, and performance optimization techniques including Burst compilation, chunk iteration, and enableable components as alternatives to add/remove operations
SKILL.md

Unity ECS Patterns

Production patterns for Unity's Data-Oriented Technology Stack (DOTS) including Entity Component System, Job System, and Burst Compiler.

When to Use This Skill

  • Building high-performance Unity games
  • Managing thousands of entities efficiently
  • Implementing data-oriented game systems
  • Optimizing CPU-bound game logic
  • Converting OOP game code to ECS
  • Using Jobs and Burst for parallelization

Core Concepts

1. ECS vs OOP

Aspect Traditional OOP ECS/DOTS
Related skills

More from wshobson/agents

Installs
6.8K
Repository
wshobson/agents
GitHub Stars
35.2K
First Seen
Jan 20, 2026