liveBook · Manning

Entity component system

Also called ECS

An entity-component system is a software architecture that represents entities separately from composable data components and uses systems to process those components.

How 2 Manning books explain it

High Performance Unity Game Development

ECS is an architecture that represents entities separately from their data components and the systems that process those components.

How it is used
Positions ECS as Unity’s cache-friendly entity-data organization to consider when simpler array-based data-oriented design does not meet a specific need.
How deep it goes
Defines entities, components, and systems through an enemy-movement array loop, but stops short of implementing a full ECS conversion.
Examples
Uses an indexed enemy-position loop and a Unity physics integration diagram to contrast ECS with array-based gameplay logic.
What you can do after
Evaluate/understand it by weighing cache-friendly storage against component, system, and GameObject-conversion overhead in a Unity game.

Read how High Performance Unity Game Development explains entity component system →

Robotics for Programmers

An entity component system is a software architecture that represents objects as entities with composable data components and processes them with systems.

How it is used
Configures modular robot simulations by separating world data from plugin systems and simulator assumptions.
How deep it goes
Defines entities, components, systems, managers, synchronization, and update ordering, but does not detail component storage beyond Python-like pseudocode.
Examples
Uses Gazebo models, sensors, actuators, lights, component dictionaries, server-client architecture, and a physics-stepped simulation loop.
What you can do after
Operate/configure Gazebo simulations by organizing simulated objects as components and extending behavior through plugins.

Read how Robotics for Programmers explains entity component system →

Related concepts

Questions about entity component system

What is entity component system?

An entity-component system is a software architecture that represents entities separately from composable data components and uses systems to process those components.

Which Manning books explain entity component system?

High Performance Unity Game Development and Robotics for Programmers.

What is the difference between entity component system and TransformAccessArray?

An entity-component system is a software architecture that represents entities separately from composable data components and uses systems to process those components. A Unity data structure that provides job-compatible access to GameObject transforms.

What is entity component system a kind of?

Entity component system is a kind of design pattern. A design pattern is a reusable, general solution structure for a recurring software design problem.

What is entity component system also called?

Entity component system is also called ECS.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.