unity-ecs-patterns

Implement Unity DOTS ECS patterns with ISystem, queries, and Burst compilation.

1|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/haxlys/skills --skill unity-ecs-patterns-haxlys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-ecs-patterns
Source: https://github.com/haxlys/skills/tree/main/vendored/wshobson-agents/plugins/game-development/skills/unity-ecs-patterns
Command: npx skills add https://github.com/haxlys/skills --skill unity-ecs-patterns-haxlys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity game development often struggles with performance when simulating thousands of entities. This Skill provides production-ready patterns for Unity's DOTS (ECS, Job System, Burst) to help structure data-oriented architectures and scalable systems.

Core Features & Use Cases

  • Basic ECS setup and Entity initialization with components
  • Systems with ISystem and Burst-compiled logic for high throughput
  • Entity Queries, EntityCommandBuffers, and bulk data processing
  • Aspects for clean, modular component grouping
  • Baking (converting GameObjects) for DOTS-ready workflows
  • Jobs with Native Collections for parallel data processing

Quick Start

Start by converting a simple GameObject into an ECS entity using a Baker to attach a Speed component and move with a LocalTransform

Frequently Asked Questions about unity-ecs-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure Unity ECS systems for high-performance game development?

Unity ECS systems achieve high performance by using data-oriented design with ISystem workflows, Burst-compiled logic, and job-based parallelism to process thousands of entities efficiently. This approach separates data from logic for scalable simulation.

How do I convert GameObjects to ECS entities using baking?

Baking converts GameObjects to ECS entities by using a Baker to attach components like Speed and LocalTransform. This DOTS-ready workflow translates traditional Unity objects into optimized ECS data structures for high throughput.

What is the best way to process bulk data in Unity DOTS?

Processing bulk data in Unity DOTS is best handled through Entity Queries and EntityCommandBuffers. These constructs enable efficient filtering, iteration, and structural changes across thousands of entities within Burst-compiled systems.

Can I use Unity ECS patterns for simulating thousands of entities?

Unity ECS patterns are specifically designed for simulating thousands of entities. By leveraging the Job System, Burst compilation, and Native Collections, you can achieve massive parallel data processing and high throughput.

How do aspects help with Unity ECS component grouping?

Aspects provide clean, modular component grouping in Unity ECS. They encapsulate multiple components into a single struct, making system logic more readable and manageable when querying and processing related entity data.

Do I need Unity DOTS to use Burst-compiled systems and job-based parallelism?

Yes, Unity DOTS is required for Burst-compiled systems and job-based parallelism. The DOTS framework provides the ECS architecture, Job System, and Burst compiler integration needed to execute high-performance, data-oriented game logic.