In this tutorial I will try to explain the basics of what an entity component system is, why we need it, how it can be implemented (and why it's not as easy as it might seem, and how to use Unity's entity system).
The tutorial has 4 parts, with their own README files and sample projects.
Sample project simulating balls moving inside a box, without using ECS.
Here I explain the basic idea behind ECS, and what problems it tries to solve. I also show how to can write cache-friendly code in a similar manner to how ECS works.
How about making your own ECS implementation? It's more difficult than you might think! Here I show a very basic ECS implementation, and explain why this is not a good enough implementation
Sample project simulating balls moving inside a box, now using Unity ECS.