---
title: "Unity ECS でゲームを最適化する（エージェント用スキル） | Orchestor"
description: "Unity ECS（Entity Component System）、DOTS、Jobs、Burst を用いて高性能なゲームを開発する。データ指向のゲーム構築、性能最適化、大量のエンティティの処理に使う。wshobson/agents が公開している「Unity ECS でゲームを最適化する」の使い方を確認できます。"
canonical_url: "https://www.orchestor.io/ja/skills/wshobson/agents/unity-ecs-patterns"
markdown_url: "https://www.orchestor.io/ja/skills/wshobson/agents/unity-ecs-patterns.md"
---

[c96b5f6](https://github.com/wshobson/agents/commit/c96b5f6552dba32e4492307493ee613581430715)[原文を開く](https://github.com/wshobson/agents/blob/c96b5f6552dba32e4492307493ee613581430715/plugins/game-development/skills/unity-ecs-patterns/SKILL.md)

wshobson2026/11/24

原文 (選択中)

未翻訳

プレビュー (選択中)

62 行（空行を除く 46 行） · 2.02 KB原文

```yaml
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.
```

# 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        |
| ----------- | ----------------- | --------------- |
| 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 |

### 2\. DOTS Components

```
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 patterns and worked examples

Detailed pattern documentation lives in details.md. Read that file when the navigation tier above is insufficient.

## Best Practices

### Do's

* **Use ISystem over SystemBase** \- Better performance
* **Burst compile everything** \- Massive speedup
* **Batch structural changes** \- Use ECB
* **Profile with Profiler** \- Identify bottlenecks
* **Use Aspects** \- Clean component grouping

### Don'ts

* **Don't use managed types** \- Breaks Burst
* **Don't structural change in jobs** \- Use ECB
* **Don't over-architect** \- Start simple
* **Don't ignore chunk utilization** \- Group similar entities
* **Don't forget disposal** \- Native collections leak

## Structured data

```json
[
  [
    {
      "@context": "https://schema.org",
      "@type": "Organization",
      "name": "Orchestor",
      "url": "https://www.orchestor.io",
      "sameAs": [
        "https://orchestor.io",
        "https://www.orchestor.io",
        "https://docs.orchestor.io"
      ],
      "@id": "https://www.orchestor.io/#organization",
      "alternateName": [
        "オーケスター"
      ],
      "logo": "https://www.orchestor.io/images/common/ogp/orchestor-ogp.png",
      "parentOrganization": {
        "@type": "Organization",
        "name": "ドットメディア株式会社",
        "url": "https://www.dotmedia.co.jp"
      }
    },
    {
      "@context": "https://schema.org",
      "@type": "WebSite",
      "url": "https://www.orchestor.io",
      "name": "Orchestor",
      "description": "Orchestor で画像・動画・音声を作り、参照素材を Remix できます。",
      "@id": "https://www.orchestor.io/#website",
      "alternateName": [
        "オーケスター"
      ],
      "inLanguage": "ja",
      "publisher": {
        "@id": "https://www.orchestor.io/#organization"
      }
    }
  ],
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "@id": "https://www.orchestor.io/skills/wshobson/agents/unity-ecs-patterns#breadcrumb",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Orchestor",
        "item": "https://www.orchestor.io/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "スキル",
        "item": "https://www.orchestor.io/skills"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Unity ECS でゲームを最適化する",
        "item": "https://www.orchestor.io/skills/wshobson/agents/unity-ecs-patterns"
      }
    ]
  }
]
```

---

[Documentation index](https://www.orchestor.io/llms.txt)
