Unity Ecs Patterns
Unverified●30/40Claude Code◐PartialHas SKILL.md but declares no allowed-tools — Claude Code will ask for permission each time
Cursor◐PartialPlain prose you can paste in — but no Cursor rules file
Codex◐PartialPlain prose you can paste in — but no AGENTS.md
Gemini CLI◐PartialPlain prose you can paste in
Copilot◐PartialPlain prose you can paste in — but no Copilot instructions file
npx agentalley add unity-ecs-patternsWho is stuck, and on what
Master Unity ECS (Entity Component System) with DOTS, Jobs, and Burst for high-performance game development. Use when building data-oriented games, optimizing performance, or working with large entity counts.
The whole source
Frontmatter — 2 properties
| name | unity-ecs-patterns |
|---|---|
| description | Master Unity ECS (Entity Component System) with DOTS, Jobs, and Burst for high-performance game development. Use when building data-oriented games, optimizing performance, or working with large entity counts. |
| 1 | --- |
| 2 | name: unity-ecs-patterns |
| 3 | description: Master Unity ECS (Entity Component System) with DOTS, Jobs, and Burst for high-performance game development. Use when building data-oriented games, optimizing performance, or working with large entity counts. |
| 4 | ---A5 — No allowed-tools declared — no way to tell what this skill may touch |
| 5 | |
| 6 | # Unity ECS Patterns |
| 7 | |
| 8 | Production patterns for Unity's Data-Oriented Technology Stack (DOTS) including Entity Component System, Job System, and Burst Compiler. |
| 9 | |
| 10 | ## When to Use This Skill |
| 11 | |
| 12 | - Building high-performance Unity games |
| 13 | - Managing thousands of entities efficiently |
| 14 | - Implementing data-oriented game systems |
| 15 | - Optimizing CPU-bound game logic |
| 16 | - Converting OOP game code to ECS |
| 17 | - Using Jobs and Burst for parallelization |
| 18 | |
| 19 | ## Core Concepts |
| 20 | |
| 21 | ### 1. ECS vs OOP |
| 22 | |
| 23 | | Aspect | Traditional OOP | ECS/DOTS | |
| 24 | | ----------- | ----------------- | --------------- | |
| 25 | | Data layout | Object-oriented | Data-oriented | |
| 26 | | Memory | Scattered | Contiguous | |
| 27 | | Processing | Per-object | Batched | |
| 28 | | Scaling | Poor with count | Linear scaling | |
| 29 | | Best for | Complex behaviors | Mass simulation | |
| 30 | |
| 31 | ### 2. DOTS Components |
| 32 | |
| 33 | ``` |
| 34 | Entity: Lightweight ID (no data) |
| 35 | Component: Pure data (no behavior) |
| 36 | System: Logic that processes components |
| 37 | World: Container for entities |
| 38 | Archetype: Unique combination of components |
| 39 | Chunk: Memory block for same-archetype entities |
| 40 | ``` |
| 41 | |
| 42 | ## Detailed patterns and worked examples |
| 43 | |
| 44 | Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient. |
| 45 | |
| 46 | ## Best Practices |
| 47 | |
| 48 | ### Do's |
| 49 | |
| 50 | - **Use ISystem over SystemBase** - Better performance |
| 51 | - **Burst compile everything** - Massive speedup |
| 52 | - **Batch structural changes** - Use ECB |
| 53 | - **Profile with Profiler** - Identify bottlenecks |
| 54 | - **Use Aspects** - Clean component grouping |
| 55 | |
| 56 | ### Don'ts |
| 57 | |
| 58 | - **Don't use managed types** - Breaks Burst |
| 59 | - **Don't structural change in jobs** - Use ECB |
| 60 | - **Don't over-architect** - Start simple |
| 61 | - **Don't ignore chunk utilization** - Group similar entities |
| 62 | - **Don't forget disposal** - Native collections leak |
| 63 |
Reviews
Installed this one?Write the first review and take the Trailblazer badge.
Alternatives
Subagent Driven DevelopmentUse when executing implementation plans with independent tasks in the current session◐◐◐◐◐●36/40Python Code Style & DocumentationPython code style, linting, formatting, naming conventions, and documentation standards. Use when writing new code, reviewing style, configuring linters, writing docstrings, or establishing project standards.◐····●35/40Competitor Price Analysis 💲Competitor pricing strategy analysis and market positioning. Price mapping, pricing gaps identification, elasticity signals evaluation, and strategic pricing optimization. Use when the user asks about competitor pricing, price analysis, pricing strategy, or co◐····●34/40Competitor Price Tracker 📊Set up competitor price tracking and monitoring workflows. Track price changes, detect promotions, analyze pricing patterns, and get alerts for competitive price movements.◐····●34/40