---
title: ECS For All：進化するUnityのゲームプレイアーキテクチャ
tags: 
author: [Unity Technologies Japan](https://www.docswell.com/user/UnityJapan)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/57G1X6YWEL.jpg?width=480
description: ECS For All：進化するUnityのゲームプレイアーキテクチャ by Unity Technologies Japan
published: November 16, 26
canonical: https://www.docswell.com/s/UnityJapan/57NP6J-2026-11-16-235408
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/57G1X6YWEL.jpg)



# Page. 2

![Page Image](https://bcdn.docswell.com/page/4EQD84MQJP.jpg)

ROADMAP
Safe Harbor
Statement
The following is intended for informational
purposes only, and may not be incorporated into
any contract. No purchasing decisions should be
made based on the following materials. Unity is
not committing to deliver any functionality,
features or code. The development, timing and
release of all products, functionality and features
are at the sole discretion of Unity, and are subject
to change.
Nyhavn at sunset
Source: Moahim, Creative Commons Attribution-Share
Alike 4.0 International


# Page. 3

![Page Image](https://bcdn.docswell.com/page/KJ4Z2QVY71.jpg)

Joe
Valenzuela
Christopher
Redden
Senior Director, Core Engine
Principal Software Engineer


# Page. 4

![Page Image](https://bcdn.docswell.com/page/LE1RMP3NEG.jpg)

→
ECS for All
→
Phase 1
⎯
Data-Oriented Design
DOD
⎯
DOD at Unity
⎯ “DOTSˮ and Entities
Phase 2
⎯
TKTK


# Page. 5

![Page Image](https://bcdn.docswell.com/page/GEW132XM72.jpg)

Data Oriented Design


# Page. 6

![Page Image](https://bcdn.docswell.com/page/47ZPVD6ME3.jpg)

Data Oriented Design
Unite/Tokyo
Background
Performance relative to 1980 (log scale)
10K
+20%/yr
CPU
1K
100
10
+52%/yr
+25%/yr
DRAM
+7%/yr
1
1980 1985 1990 1995 2000 2005 2010
Source: J. L. Hennessy and D. A. Patterson, Computer
Architecture: A Quantitative Approach, 5th ed., Morgan
Kaufmann, 2012
“50 Years of Microprocessor Trend Data” by Karl Rupp,
licensed under CC BY 4.0
Source: github.com/karlrupp/microprocessor-trend-data


# Page. 7

![Page Image](https://bcdn.docswell.com/page/YJ6M51257V.jpg)

Data Oriented Design
Unite/Tokyo
Designing data
CORE
CORE
CORE
CORE
Common program operations
Source: 6it.dev, “Infographics: Operation Costs in CPU Clock Cycles”,
https://6it.dev/blog/infographics-operation-costs-in-cpu-clock-cycles-741, September 12, 2016


# Page. 8

![Page Image](https://bcdn.docswell.com/page/GJ5ZY42GE4.jpg)

Data Oriented Design
Unite/Tokyo
Designing data
free
CORE
CORE
CORE
CORE
Control unit
Control unit
Control unit
Control unit
ALU
ALU
ALU
ALU
Registers
Registers
Registers
Registers
32 kb (1 ns)
Instruction
256kb (3-4 ns)
Level 2 cache
16 mb (10-23 ns)
32 GB (~60 ns)
data
Instruction
data
Instruction
Level 2 cache
data
Level 2 cache
Level 3 shared cache
Memory
Instruction
data
Level 2 cache


# Page. 9

![Page Image](https://bcdn.docswell.com/page/9E2RGV4DJR.jpg)

Data Oriented Design
Unite/Tokyo
Designing data
// x0, y0, z0, x1, y1, z1, ...
float[] positions = new float[3 * count];
// scale Y
for (int i = 0; i &lt; count; ++i)
positions[i * 3 + 1] *= 0.5f;
positions
0x00
(x0)
0x04
(y0)
0x08
(z0)
0x0C
(x1)
0x10
(y1)
0x14
(z1)
0x18
(x2)
0x1C
(y2)
0x20
(z2)
0x24
(x3)
0x28
(y3)
0x2C
(z3)


# Page. 10

![Page Image](https://bcdn.docswell.com/page/D7YDV3MM7M.jpg)

Unite/Tokyo
Data Oriented Design
Starting with data
Ideal solution
Input
Transform
Output


# Page. 11

![Page Image](https://bcdn.docswell.com/page/VEN6MVW3E8.jpg)

Unite/Tokyo
Data Oriented Design
Starting with data
⚠
Ideal solution
Input
Transform
Output
x0
y0
z0
w0
x0
x1
x2
x3
x1
y1
z1
w1
y0
y1
y2
y3
x2
y2
z2
w2
z0
z1
z2
z3
x3
y3
z3
w3


# Page. 12

![Page Image](https://bcdn.docswell.com/page/Y79LN6XPJ3.jpg)

Unite/Tokyo
Data Oriented Design
Starting with data
Ideal solution
Input
OOP Solution
Input
Transform
Output
Output


# Page. 13

![Page Image](https://bcdn.docswell.com/page/G78XKZ2XED.jpg)

Unite/Tokyo
Data Oriented Design
Starting with data
Ideal solution
Input
OOP Solution
Input
Transform
Output
Output


# Page. 14

![Page Image](https://bcdn.docswell.com/page/L7L8ZD2NJR.jpg)

Unite/Tokyo
Data Oriented Design
Starting with data
Ideal solution
Input
Transform
Output
Or is it?


# Page. 15

![Page Image](https://bcdn.docswell.com/page/4EM6VP8Q7W.jpg)

Unite/Tokyo
Data Oriented Design
Designing data
●
How many instances?
int test_intersection(Sphere s, Plane p)
{
const float num = fabsf(p.x * s.xc + p.y * s.yc + p.z * s.zc);
const float den = sqrtf(p.x * p.x + p.y * p.y + p.z * p.z );
const float dis = num / den;
return dis &lt;= s.radius ? -1 : 1;
}
void test_intersections(int* dest, const Sphere* s,
int num_spheres, Plane p)
{
const float den = sqrtf(p.x * p.x + p.y * p.y + p.z * p.z);
for (int i=0; i&lt;num_spheres; ++i)
{
const float num = fabsf(p.x * s.xc + p.y * s.yc + p.z * s.zc);
const float dis = num / den;
dest[i] = dis &lt;= s-&gt;radius ? -1 : 1;
}
}


# Page. 16

![Page Image](https://bcdn.docswell.com/page/PERP215K79.jpg)

Unite/Tokyo
Data Oriented Design
Designing data
●
How many instances?
int test_intersection(Sphere s, Plane p)
{
const float num = fabsf(p.x * s.xc + p.y * s.yc + p.z * s.zc);
const float den = sqrtf(p.x * p.x + p.y * p.y + p.z * p.z );
const float dis = num / den;
return dis &lt;= s.radius ? -1 : 1;
}
void test_intersections(int* dest, const Sphere* s,
int num_spheres, Plane p)
{
const float den = sqrtf(p.x * p.x + p.y * p.y + p.z * p.z);
for (int i=0; i&lt;num_spheres; ++i)
{
const float num = fabsf(p.x * s.xc + p.y * s.yc + p.z * s.zc);
const float dis = num / den;
dest[i] = dis &lt;= s-&gt;radius ? -1 : 1;
}
}


# Page. 17

![Page Image](https://bcdn.docswell.com/page/P7X3DYK5EX.jpg)

Unite/Tokyo
Data Oriented Design
Designing data
●
What changes and what doesnʼt?
struct enemy
{
char name[32];
int enemy_type;
CollisionTris collision;
int last_visible;
matrix4x4 po;
float health;
}


# Page. 18

![Page Image](https://bcdn.docswell.com/page/37KYX35RED.jpg)

Unite/Tokyo
Data Oriented Design
Designing data
●
What changes and what doesnʼt?
struct enemy
{
char name[32];
int enemy_type;
CollisionTris collision;
int last_visible;
matrix4x4 po;
float health;
}


# Page. 19

![Page Image](https://bcdn.docswell.com/page/LJ395GKGJ5.jpg)

Unite/Tokyo
Data Oriented Design
Designing data
●
How and how often is your data
used?
struct marker
{
matrix4x4 po ;
float health;
char team_alignment[8];
char* name ;
};


# Page. 20

![Page Image](https://bcdn.docswell.com/page/8JDGD13NJG.jpg)

Unite/Tokyo
Data Oriented Design
Designing data
●
How and how often is your data
used?
struct marker
{
matrix4x4 po ;
float health;
char team_alignment[8];
char* name ;
};


# Page. 21

![Page Image](https://bcdn.docswell.com/page/VEP3XQ4N78.jpg)

Unite/Tokyo
Data Oriented Design
Designing data
●
How and how often is your data
used?
struct marker
{
matrix4x4 po ;
float health;
char team_alignment[8];
char* name ;
};


# Page. 22

![Page Image](https://bcdn.docswell.com/page/27V4L5XYEQ.jpg)

Unite/Tokyo
Data Oriented Design
Designing data
●
What can be shared?
“Mushroom Warrior”
struct enemy
{
char* name;
enemy_class * klass;
int last_visible ;
matrix4x4 po;
float health;
}
struct enemy_class
{
int type;
CollisionTris collision;
}


# Page. 23

![Page Image](https://bcdn.docswell.com/page/5JG1X6VW7L.jpg)

Unite/Tokyo
Data Oriented Design
Designing data
●
Whatʼs the range and distribution?
struct foo
{
int bar;
};
// ? ? ? ? ? ?


# Page. 24

![Page Image](https://bcdn.docswell.com/page/47QD846QEP.jpg)

Unite/Tokyo
Data Oriented Design
Designing data
●
Whatʼs the range and distribution?
struct foo
{
int bar;
};
// { 100, 102, 101, 104, 103,
105, 104 }
100
102
101
104
103
105
104
BASE VAL
DELTA
DELTA
DELTA
DELTA
DELTA
DELTA
100
+2
-1
+3
-1
+2
-1


# Page. 25

![Page Image](https://bcdn.docswell.com/page/KE4Z2Q4YJ1.jpg)

Unite/Tokyo
Data Oriented Design
Designing data
●
How much accuracy?
p(x)= 0.99999999999565793
−
0.49999999798761679 * x
+
0.04166652049177614
x^2 −
0.0013854855078607044 x^3


# Page. 26

![Page Image](https://bcdn.docswell.com/page/L71RMP4N7G.jpg)

Unite/Tokyo
Data Oriented Design
Designing data
●
How much accuracy?
p(x)= 0.99999999999565793
−
0.49999999798761679 * x
+
0.04166652049177614
x^2 −
0.0013854855078607044 x^3


# Page. 27

![Page Image](https://bcdn.docswell.com/page/G7W132ZMJ2.jpg)

Unite/Tokyo
Data Oriented Design
Designing data
●
How complex is your data?
Batch #0
Batch #1


# Page. 28

![Page Image](https://bcdn.docswell.com/page/4JZPVD1M73.jpg)

Unite/Tokyo
Data Oriented Design
Designing data
●
How complex is your data?
Batch #0
Batch #1


# Page. 29

![Page Image](https://bcdn.docswell.com/page/YE6M51L5JV.jpg)

DOTS milestones
DOTS
The past
pre-DOTS
Nov 2017 - Nov 2020
Early DOTS
Present
Fall 2020 - Nov 2026
Entities
ECS For All


# Page. 30

![Page Image](https://bcdn.docswell.com/page/GE5ZY41G74.jpg)

GameObjects
GameObject
GameObject
Transform
Transform
RigidBody
MeshRenderer
Speed
public class Speed : MonoBehaviour {
public float m_Speed;
public float m_Time;
void Update() {
if (m_Speed &gt; 88.0f)
m_Time -= 30.0f;
}
}
MeshRenderer


# Page. 31

![Page Image](https://bcdn.docswell.com/page/972RGV1DER.jpg)

GameObjects
GameObject
GameObject
Transform
Transform
RigidBody
MeshRenderer
Speed
public class Speed : MonoBehaviour {
public float m_Speed;
public float m_Time;
void Update() {
if (m_Speed &gt; 88.0f)
m_Time -= 30.0f;
}
}
MeshRenderer


# Page. 32

![Page Image](https://bcdn.docswell.com/page/DJYDV3ZMJM.jpg)

DOTS
Unite/Tokyo
DOTS features and packages
Gameplay
Physics
Rendering
[...]
Entities Graphics, Netcode for Entities,
Unity Physics
Entity Component System ECS
Architectural Pattern
Entities Package
Scheduling
C# Job System
Compilation
Burst Compiler
Galaxy
Game
DOTS Samples
ECS Character + Vehicle Controller Packages


# Page. 33

![Page Image](https://bcdn.docswell.com/page/V7N6MV3378.jpg)

Unite/Tokyo
DOTS
ECS
Archetypes/Chunks
Archetype 0
Archetype #0
Chunk #2
Entity #11
Health
Archetype 1
Chunk 0
Chunk 0
Chunk 1
Chunk 1
Chunk 2
Chunk 2
Navigation


# Page. 34

![Page Image](https://bcdn.docswell.com/page/YJ9LN69PE3.jpg)

DOTS
Unite/Tokyo
ECS gameplay architecture - IComponentData
public struct Movement : IComponentData
{
public float3 Direction;
public float Speed;
}


# Page. 35

![Page Image](https://bcdn.docswell.com/page/GJ8XKZ9X7D.jpg)

Unite/Tokyo
DOTS
ECS Systems
Archetype 0
public partial struct HealthSystem : ISystem {
public void OnUpdate(ref SystemState state)
{
// Iterate over all entities with a
// mutable Health component
foreach (var (health, entity) in
SystemAPI.Query&lt;RefRW&lt;Health&gt;&gt;()
.WithEntityAccess())
{
// ...
}
}
}
Archetype 1
Chunk 0
Chunk 0
Chunk 1
Chunk 1
Chunk 2
Chunk 2


# Page. 36

![Page Image](https://bcdn.docswell.com/page/LJL8ZDWNER.jpg)

Unite/Tokyo
DOTS
ECS Queries
Archetype 0
Archetype 1
Chunk 0
Chunk 0
Chunk 1
Chunk 1
Chunk 2
Chunk 2
With orange, without blue
Query
X


# Page. 37

![Page Image](https://bcdn.docswell.com/page/47M6VP9QJW.jpg)

Unite/Tokyo
DOTS
Entities 1.0
Results based on testing performed on a laptop with
a high-end Intel CPU and NVIDIA GPU, Unity
2022.3, Entities 1.2.0-pre.6. Results may vary.


# Page. 38

![Page Image](https://bcdn.docswell.com/page/P7RP21GKJ9.jpg)

Unite/Tokyo
DOTS
Learning ECS be like
⚠
State of things as of Entities 1.x
●
Requires installing DOTS and ECS packages
●
Requires using a separate Hierarchy window
●
There are confusing blinking yellow dots everywhere
●
Requires SubScenes to do almost everything
●
Canʼt bind between things from main scene to SubScene
●
Must use Baking
●
Requires intermediate ‘authoringʼ type
●
Canʼt use Timeline
●
Many built-in types donʼt Bake (not obvious)
●
Must use Entities SceneManager
●
Player builds use StreamingAssets
●
Cannot use addressables
●
Asset duplication between Entity Scenes &amp; GameObject Scenes
●
Cannot progressively migrate scene content to Entities
●
Working between Entities &amp; GameObjects together very difficult
●
Many things fail because of all the jank: WebGL, Lights Baking, Fog, etc


# Page. 39

![Page Image](https://bcdn.docswell.com/page/PJX3DYX57X.jpg)

Phase II Where are we,
and where are we going


# Page. 40

![Page Image](https://bcdn.docswell.com/page/3JKYX3WR7D.jpg)

Unite/Tokyo
Where are we
Where we are
The past
Nov 2017  Nov 2020
Fall 2020  Nov 2026
Present
pre-DOTS
Early DOTS
Entities
ECS For All
We are here


# Page. 41

![Page Image](https://bcdn.docswell.com/page/LE395G1GE5.jpg)

Unite/Tokyo
Where are we
What still holds people back
Setup
Authoring
Content
Interop
• Separate DOTS and ECS
packages
• A separate Hierarchy
window
• SubScenes for anything
basic
• Baking and intermediate
‘authoringʼ types
• Many built-in types donʼt
bake
• No Timeline
• Entities SceneManager
• StreamingAssets in
player builds
• No Addressables
• Assets duplicated across
scene types
• No progressive migration
• Entities and GameObjects
together is hard
• WebGL, Lights Baking,
Fog break


# Page. 42

![Page Image](https://bcdn.docswell.com/page/8EDGD1XNEG.jpg)

Unite/Tokyo
Where are we
Today: a canyon
ECS
GameObjects
Limited, but powerful
The full utility of Unity
Baking, SubScenes
• Burst Compiler
• C# Job System
• Entities Graphics, Netcode for Entities, Unity
Physics
• Designed for performance at scale
• Every built-in component
• Timeline
• Addressables
• Lights Baking, Fog, WebGL


# Page. 43

![Page Image](https://bcdn.docswell.com/page/V7P3XQPNJ8.jpg)

The original plan
ECS was always meant to be the
new foundation for the rest of Unity.
But the path there had become unclear.


# Page. 44

![Page Image](https://bcdn.docswell.com/page/2JV4L52Y7Q.jpg)

Unite/Tokyo
A challenge
Where are we


# Page. 45

![Page Image](https://bcdn.docswell.com/page/5EG1X6RWJL.jpg)

Unite/Tokyo
Where are we
A challenge
“I would believe in this if an Entity
and a GameObject could share a
Transform system.ˮ


# Page. 46

![Page Image](https://bcdn.docswell.com/page/4JQD84VQ7P.jpg)

He knew this was in fact very complicated. He was trying to making a point
about how far away we were.


# Page. 47

![Page Image](https://bcdn.docswell.com/page/K74Z2QMYE1.jpg)

He knew this was in fact very complicated. He was trying to making a point
about how far away we were.
But we took a moment to think about it...


# Page. 48

![Page Image](https://bcdn.docswell.com/page/LJ1RMP8NJG.jpg)

He knew this was in fact very complicated. He was trying to making a point
about how far away we were.
But we took a moment to think about it...
“Actually, why not?ˮ


# Page. 49

![Page Image](https://bcdn.docswell.com/page/GJW132GME2.jpg)

Instead of bringing the rest of Unity to ECS,
we will bring ECS to the rest of
Unity.
The rest of Unity
ECS
ECS
The rest of Unity


# Page. 50

![Page Image](https://bcdn.docswell.com/page/4EZPVDLMJ3.jpg)

How?


# Page. 51

![Page Image](https://bcdn.docswell.com/page/Y76M51W5EV.jpg)

What is a GameObject?
Under the hood)


# Page. 52

![Page Image](https://bcdn.docswell.com/page/G75ZY4MGJ4.jpg)

Unite/Tokyo
ECS for All
What a GameObject really is
C#
GameObject
Thin wrapper (a pointer)
C
GameObject
The real object and its memory


# Page. 53

![Page Image](https://bcdn.docswell.com/page/9J2RGV9D7R.jpg)

Unite/Tokyo
ECS for All
What a GameObject really is
C#
GameObject
Thin wrapper (a pointer)
GameObject
The real object and its memory
C
GameObject


# Page. 54

![Page Image](https://bcdn.docswell.com/page/DEYDV34MEM.jpg)

Unite/Tokyo
ECS for All
What a GameObject really is
C#
GameObject
GameObject
GameObject
Transform, Light,
Rigidbody…
Built-in components
Thin wrapper (a pointer)
C
The real object and its memory


# Page. 55

![Page Image](https://bcdn.docswell.com/page/VJN6MVY3J8.jpg)

Unite/Tokyo
ECS for All
What a GameObject really is
C#
GameObject
Built-in components
Thin wrapper (a pointer)
C
GameObject
GameObject
Transform, Light,
Rigidbody
Transform, Light,
Rigidbody…
The real object and its memory


# Page. 56

![Page Image](https://bcdn.docswell.com/page/YE9LN6PP73.jpg)

Unite/Tokyo
ECS for All
What a GameObject really is
C#
GameObject
Built-in components
MonoBehaviour
Thin wrapper (a pointer)
C
GameObject
GameObject
Transform, Light,
Rigidbody
Transform, Light,
Rigidbody…
MonoBehaviour
The real object and its memory


# Page. 57

![Page Image](https://bcdn.docswell.com/page/GE8XKZDXJD.jpg)

Unite/Tokyo
ECS for All
What a GameObject really is
C#
GameObject
Built-in components
MonoBehaviour
Thin wrapper (a pointer)
C
GameObject
GameObject
Transform, Light,
Rigidbody
Transform, Light,
Rigidbody…
MonoBehaviour
The real object and its memory
MonoBehaviour


# Page. 58

![Page Image](https://bcdn.docswell.com/page/LEL8ZDMN7R.jpg)

Unite/Tokyo
ECS for All
Where a GameObjectʼs components live
C# managed objects
C native memory
MonoBehaviour
Transform
Transform wrapper
Light
Light wrapper
Rigidbody
Garbage-collected heap
Native allocations


# Page. 59

![Page Image](https://bcdn.docswell.com/page/4JM6VPYQEW.jpg)

Unite/Tokyo
ECS for All
Where a GameObjectʼs components live
What if we added ECS components to that?
C# managed objects
C native memory
MonoBehaviour
Transform
Transform wrapper
Light
Light wrapper
Rigidbody
ECS chunks
struct Movement : IComponentData
{ float3 Direction;
float Speed; }
Chunk 0
Movement
Garbage-collected heap
Native allocations
Chunk-based IComponentData


# Page. 60

![Page Image](https://bcdn.docswell.com/page/PJRP219KE9.jpg)

What is a Unity Object?


# Page. 61

![Page Image](https://bcdn.docswell.com/page/PEX3DYQ5JX.jpg)

Unite/Tokyo
ECS for All
What is a Unity Object?
UnityObject
UnityObject
GameObject
Component
Light
Arrows point to the base class. Inheritance simplified.


# Page. 62

![Page Image](https://bcdn.docswell.com/page/3EKYX39RJD.jpg)

Unite/Tokyo
ECS for All
What is a Unity Object?
UnityObject
class Object
{
int32 InstanceID;
}
InstanceID maps to an Object*, so any Object
can be found from its InstanceID. Used all over
the engine.


# Page. 63

![Page Image](https://bcdn.docswell.com/page/L7395GWG75.jpg)

Unite/Tokyo
ECS for All
What is a Unity Object?
UnityObject
class Object
{
int32 InstanceID;
}
InstanceID maps to an Object*, so any Object
can be found from its InstanceID. Used all over
the engine.
A unique 32-bit integer for every Object.


# Page. 64

![Page Image](https://bcdn.docswell.com/page/87DGD1KN7G.jpg)

Unite/Tokyo
ECS for All
What is a Unity Object?
UnityObject
class Object
{
int32 InstanceID;
}
InstanceID maps to an Object*, so any Object
can be found from its InstanceID. Used all over
the engine.
A unique 32-bit integer for every Object.
Allocated with a simple bump allocator.
next
1
2
3
4
5


# Page. 65

![Page Image](https://bcdn.docswell.com/page/VJP3XQKNE8.jpg)

Unite/Tokyo
ECS for All
What is a Unity Object?
UnityObject
class Object
{
int32 InstanceID;
}
InstanceID maps to an Object*, so any Object
can be found from its InstanceID. Used all over
the engine.
A unique 32-bit integer for every Object.
Allocated with a simple bump allocator.
Only valid at runtime.
next
1
2
3
4
5


# Page. 66

![Page Image](https://bcdn.docswell.com/page/2EV4L5VYJQ.jpg)

What is an Entity?


# Page. 67

![Page Image](https://bcdn.docswell.com/page/57G1X6LWEL.jpg)

Unite/Tokyo
ECS for All
What is an Entity?
Entity
struct Entity
{
int Index;
int Version;
}
Entity maps to a Chunk* and IndexInChunk, so
any entityʼs components can be found from its
Entity.


# Page. 68

![Page Image](https://bcdn.docswell.com/page/4EQD84YQJP.jpg)

Unite/Tokyo
ECS for All
What is an Entity?
Entity
struct Entity
{
int Index;
int Version;
}
Entity maps to a Chunk* and IndexInChunk, so
any entityʼs components can be found from its
Entity.
A unique versioned handle.


# Page. 69

![Page Image](https://bcdn.docswell.com/page/KJ4Z2QWY71.jpg)

Unite/Tokyo
ECS for All
What is an Entity?
Entity
struct Entity
{
int Index;
int Version;
}
Entity maps to a Chunk* and IndexInChunk, so
any entityʼs components can be found from its
Entity.
A unique versioned handle.
Allocated with a thread-safe block store.


# Page. 70

![Page Image](https://bcdn.docswell.com/page/LE1RMPYNEG.jpg)

Unite/Tokyo
ECS for All
What is an Entity?
Entity
struct Entity
{
int Index;
int Version;
}
Entity maps to a Chunk* and IndexInChunk, so
any entityʼs components can be found from its
Entity.
A unique versioned handle.
Allocated with a thread-safe block store.
Only valid at runtime.


# Page. 71

![Page Image](https://bcdn.docswell.com/page/GEW1321M72.jpg)

Unite/Tokyo
ECS for All
What is an Entity?
Entity
struct Entity
{
int Index;
int Version;
}
A unique versioned handle.
Allocated with a thread-safe block store.
Only valid at runtime.
Entity maps to a Chunk* and IndexInChunk, so
any entityʼs components can be found from its
Entity.
Curious how Index and Version work? The source is public in the Entities package. Weʼll skip explaining it today.


# Page. 72

![Page Image](https://bcdn.docswell.com/page/47ZPVDPME3.jpg)

Unite/Tokyo
ECS for All
InstanceID vs Entity
InstanceID
Entity
int32 InstanceID;
struct Entity
{ int Index; int Version; }


# Page. 73

![Page Image](https://bcdn.docswell.com/page/YJ6M51M57V.jpg)

Unite/Tokyo
ECS for All
InstanceID vs Entity
InstanceID
Entity
int32 InstanceID;
struct Entity
{ int Index; int Version; }
● Bump allocator


# Page. 74

![Page Image](https://bcdn.docswell.com/page/GJ5ZY4ZGE4.jpg)

Unite/Tokyo
ECS for All
InstanceID vs Entity
InstanceID
Entity
int32 InstanceID;
struct Entity
{ int Index; int Version; }
● Bump allocator
● Index / Version handle


# Page. 75

![Page Image](https://bcdn.docswell.com/page/LE395G9PE5.jpg)

Unite/Tokyo
ECS for All
InstanceID vs Entity
InstanceID
Entity
int32 InstanceID;
struct Entity
{ int Index; int Version; }
● Bump allocator
● 4 bytes
● Index / Version handle


# Page. 76

![Page Image](https://bcdn.docswell.com/page/8EDGD1G3EG.jpg)

Unite/Tokyo
ECS for All
InstanceID vs Entity
InstanceID
Entity
int32 InstanceID;
struct Entity
{ int Index; int Version; }
● Bump allocator
● Index / Version handle
● 4 bytes
● 8 bytes


# Page. 77

![Page Image](https://bcdn.docswell.com/page/V7P3XQ3PJ8.jpg)

Unite/Tokyo
ECS for All
InstanceID vs Entity
InstanceID
Entity
int32 InstanceID;
struct Entity
{ int Index; int Version; }
● Bump allocator
● Index / Version handle
● 4 bytes
● 8 bytes
● Only valid at runtime


# Page. 78

![Page Image](https://bcdn.docswell.com/page/2JV4L54V7Q.jpg)

Unite/Tokyo
ECS for All
InstanceID vs Entity
InstanceID
Entity
int32 InstanceID;
struct Entity
{ int Index; int Version; }
● Bump allocator
● Index / Version handle
● 4 bytes
● 8 bytes
● Only valid at runtime
● Only valid at runtime


# Page. 79

![Page Image](https://bcdn.docswell.com/page/5EG1X611JL.jpg)

Unite/Tokyo
ECS for All
InstanceID vs Entity
InstanceID
Entity
int32 InstanceID;
struct Entity
{ int Index; int Version; }
● Bump allocator
● Index / Version handle
● 4 bytes
● 8 bytes
● Only valid at runtime
● Only valid at runtime
● Uniquely identifies an Object


# Page. 80

![Page Image](https://bcdn.docswell.com/page/4JQD84DN7P.jpg)

Unite/Tokyo
ECS for All
InstanceID vs Entity
InstanceID
Entity
int32 InstanceID;
struct Entity
{ int Index; int Version; }
● Bump allocator
● Index / Version handle
● 4 bytes
● 8 bytes
● Only valid at runtime
● Only valid at runtime
● Uniquely identifies an Object
● Uniquely identifies an Entity


# Page. 81

![Page Image](https://bcdn.docswell.com/page/K74Z2QZ3E1.jpg)

What if we replaced InstanceID with
Entity?


# Page. 82

![Page Image](https://bcdn.docswell.com/page/LJ1RMPRZJG.jpg)

Unite/Tokyo
ECS for All
What if we replaced InstanceID with Entity?
UnityObject
class Object
{
int32 InstanceID;
}


# Page. 83

![Page Image](https://bcdn.docswell.com/page/GJW13216E2.jpg)

Unite/Tokyo
ECS for All
What if we replaced InstanceID with Entity?
UnityObject
class Object
{
int32 InstanceID;
Entity EntityId;
}


# Page. 84

![Page Image](https://bcdn.docswell.com/page/4EZPVDPRJ3.jpg)

Unite/Tokyo
ECS for All
What if we replaced InstanceID with Entity?
UnityObject
class Object
{
int32 InstanceID;
Entity EntityId;
}
Entities and GameObjects share the same Id
system.


# Page. 85

![Page Image](https://bcdn.docswell.com/page/Y76M51M1EV.jpg)

Unite/Tokyo
ECS for All
What if we replaced InstanceID with Entity?
UnityObject
class Object
{
int32 InstanceID;
Entity EntityId;
}
Entity and GameObject share the same Id
system.
A GameObject is implicitly an Entity.
Yes, that also includes all UnityObjects, so only GameObjects
will get valid ECS Chunks.


# Page. 86

![Page Image](https://bcdn.docswell.com/page/G75ZY4ZLJ4.jpg)

Unite/Tokyo
ECS for All
What if we replaced InstanceID with Entity?
UnityObject
class Object
{
int32 InstanceID;
Entity EntityId;
}
Entity and GameObject share the same Id
system.
A GameObject is implicitly an Entity.
Yes, that also includes all UnityObjects, so only GameObjects
will get valid ECS Chunks.
An Entity maps to both an Object* and Chunk*
+ IndexInChunk.


# Page. 87

![Page Image](https://bcdn.docswell.com/page/9J2RGVR37R.jpg)

What if we replaced InstanceIDs with Entity?
Do we get ECS on GameObjects for
free?


# Page. 88

![Page Image](https://bcdn.docswell.com/page/DEYDV3D8EM.jpg)

What if we replaced InstanceIDs with Entity?
Do we get ECS on GameObjects for
free?
Ye…


# Page. 89

![Page Image](https://bcdn.docswell.com/page/VJN6MV69J8.jpg)

What if we replaced InstanceIDs with Entity?
Do we get ECS on GameObjects for
free?
Ye…no.


# Page. 90

![Page Image](https://bcdn.docswell.com/page/YE9LN6L373.jpg)

What if we replaced InstanceIDs with Entity?
Do we get ECS on GameObjects for
free?
Ye…no.
But it becomes possible!
→ So letʼs do it.


# Page. 91

![Page Image](https://bcdn.docswell.com/page/GE8XKZXLJD.jpg)

Unite/Tokyo
ECS for All
If youʼve followed 6.0  6.7, youʼve felt some of this
1
2
3
4
The type became
opaque
InstanceID became 8
bytes
Renamed to EntityId
The bump allocator
replaced by the ECS
Entity allocator
int32
↓
struct InstanceID
{ int32 value; }
struct InstanceID
{ int32 value; }
↓
struct InstanceID
{ int64 value; }
So nobody could treat the value
as a number and do… weird
stuff
struct InstanceID
{ int64 value; }
↓
struct EntityId
{ int64 value; }
struct EntityId
{ int64 value; }
↓
struct EntityId
{
int Index;
int Version;
}


# Page. 92

![Page Image](https://bcdn.docswell.com/page/LEL8ZD8Q7R.jpg)

So now, in 6.7, a GameObject and an Entity are addressed with the same
EntityId.
A GameObject is, at its core, an
Entity!
GameObject
EntityId
Entity


# Page. 93

![Page Image](https://bcdn.docswell.com/page/4JM6VPXKEW.jpg)

ECS For All 7.X


# Page. 94

![Page Image](https://bcdn.docswell.com/page/PJRP21N6E9.jpg)

Unite/Tokyo
Whatʼs in 7.0
ECS For All


# Page. 95

![Page Image](https://bcdn.docswell.com/page/PEX3DYNDJX.jpg)

Unite/Tokyo
ECS For All
Whatʼs in 7.0
● Entities core functionality is built in
The package still exists for optional features: Baking, SubScenes and source-gen APIs IJobEntity, idiomatic
foreach, …)


# Page. 96

![Page Image](https://bcdn.docswell.com/page/3EKYX3NDJD.jpg)

Unite/Tokyo
ECS For All
Whatʼs in 7.0
● Entities core functionality is built in
The package still exists for optional features: Baking, SubScenes and source-gen APIs IJobEntity, idiomatic
foreach, …)
● IComponentData and DynamicBuffer on GameObjects


# Page. 97

![Page Image](https://bcdn.docswell.com/page/L7395GVP75.jpg)

Unite/Tokyo
ECS For All
Whatʼs in 7.0
● Entities core functionality is built in
The package still exists for optional features: Baking, SubScenes and source-gen APIs IJobEntity, idiomatic
foreach, …)
● IComponentData and DynamicBuffer on GameObjects
● Editor support: Inspector, Prefabs, Copy + Paste, Undo


# Page. 98

![Page Image](https://bcdn.docswell.com/page/87DGD1837G.jpg)

Unite/Tokyo
ECS For All
Whatʼs in 7.0
● Entities core functionality is built in
The package still exists for optional features: Baking, SubScenes and source-gen APIs IJobEntity, idiomatic
foreach, …)
● IComponentData and DynamicBuffer on GameObjects
● Editor support: Inspector, Prefabs, Copy + Paste, Undo
● Scene serialisation and build support


# Page. 99

![Page Image](https://bcdn.docswell.com/page/VJP3XQ8PE8.jpg)

Unite/Tokyo
ECS For All
Whatʼs in 7.0
● Entities core functionality is built in
The package still exists for optional features: Baking, SubScenes and source-gen APIs IJobEntity, idiomatic
foreach, …)
● IComponentData and DynamicBuffer on GameObjects
● Editor support: Inspector, Prefabs, Copy + Paste, Undo
● Scene serialisation and build support
● Unified lifecycles
Destroying the GameObject destroys its ECS data; destroying the Entity destroys the GameObject


# Page. 100

![Page Image](https://bcdn.docswell.com/page/2EV4L5NVJQ.jpg)

Unite/Tokyo
ECS For All
Example: moving ships
public class Ship : MonoBehaviour
{
public float3 Velocity;
[SerializeField] ShipLoadout loadout;
[SerializeField] Faction faction;
HealthPool hull;
WeaponBank weapons;
void Start() =&gt; (hull, weapons) = loadout.Build(this);
void Update()
{
UpdateTargeting(faction.Enemies);
weapons.Tick(Time.deltaTime);
if (hull.IsCritical) EmitDistressSignal();
RegenerateShields();
transform.position +=
(Vector3)(Velocity * Time.deltaTime);
}
void OnCollisionEnter(Collision c) =&gt; hull.ApplyImpact(c);
void OnDockRequested(Station s) { /* ... */ }
// ... 400 more lines of gameplay
}
One ship: fine.


# Page. 101

![Page Image](https://bcdn.docswell.com/page/57G1X6K1EL.jpg)

Unite/Tokyo
ECS For All
Example: moving ships
public class Ship : MonoBehaviour
{
public float3 Velocity;
[SerializeField] ShipLoadout loadout;
[SerializeField] Faction faction;
HealthPool hull;
WeaponBank weapons;
void Start() =&gt; (hull, weapons) = loadout.Build(this);
void Update()
{
UpdateTargeting(faction.Enemies);
weapons.Tick(Time.deltaTime);
if (hull.IsCritical) EmitDistressSignal();
RegenerateShields();
transform.position +=
(Vector3)(Velocity * Time.deltaTime);
}
void OnCollisionEnter(Collision c) =&gt; hull.ApplyImpact(c);
void OnDockRequested(Station s) { /* ... */ }
// ... 400 more lines of gameplay
}
One ship: fine.
10,000 ships:
• 10,000 Update() calls every frame
• Each one a call from C into C#
• Each Transform moved one at a time
Can be too slow. But donʼt rewrite the Ship:
move just the hot part to ECS.


# Page. 102

![Page Image](https://bcdn.docswell.com/page/4EQD84NNJP.jpg)

Unite/Tokyo
ECS For All
Migrate just the velocity
The MonoBehaviour hands velocity to ECS
public struct Velocity : IComponentData { public float3 Value; }
public class Ship : MonoBehaviour
{
public float3 StartVelocity;
[SerializeField] ShipLoadout loadout;
[SerializeField] Faction faction;
HealthPool hull;
WeaponBank weapons;
void Start()
{
(hull, weapons) = loadout.Build(this);
AddComponentData(this.gameObject,
new Velocity { Value = StartVelocity });
}
void Update()
{
UpdateTargeting(faction.Enemies);
weapons.Tick(Time.deltaTime);
if (hull.IsCritical) EmitDistressSignal();
RegenerateShields();
transform.position +=
(Vector3)(Velocity * Time.deltaTime);
}
void OnCollisionEnter(Collision c) =&gt; hull.ApplyImpact(c);
// ... 400 more lines of gameplay
}
The gameplay code stays in the MonoBehaviour. Only
the movement leaves Update(): the Ship hands its
velocity to ECS once.


# Page. 103

![Page Image](https://bcdn.docswell.com/page/KJ4Z2QG371.jpg)

Unite/Tokyo
ECS For All
Migrate just the velocity
The MonoBehaviour hands velocity to ECS
public struct Velocity : IComponentData { public float3 Value; }
public class Ship : MonoBehaviour
{
public float3 StartVelocity;
[SerializeField] ShipLoadout loadout;
[SerializeField] Faction faction;
HealthPool hull;
WeaponBank weapons;
void Start()
{
(hull, weapons) = loadout.Build(this);
AddComponentData(this.gameObject,
new Velocity { Value = StartVelocity });
}
void Update()
{
UpdateTargeting(faction.Enemies);
weapons.Tick(Time.deltaTime);
if (hull.IsCritical) EmitDistressSignal();
RegenerateShields();
}
void OnCollisionEnter(Collision c) =&gt; hull.ApplyImpact(c);
// ... 400 more lines of gameplay
}
A system moves every ship
partial struct MoveSystem : ISystem
{
public void OnUpdate(ref SystemState state)
{
}
}


# Page. 104

![Page Image](https://bcdn.docswell.com/page/LE1RMPDZEG.jpg)

Unite/Tokyo
ECS For All
Migrate just the velocity
The MonoBehaviour hands velocity to ECS
public struct Velocity : IComponentData { public float3 Value; }
public class Ship : MonoBehaviour
{
public float3 StartVelocity;
[SerializeField] ShipLoadout loadout;
[SerializeField] Faction faction;
HealthPool hull;
WeaponBank weapons;
void Start()
{
(hull, weapons) = loadout.Build(this);
AddComponentData(this.gameObject,
new Velocity { Value = StartVelocity });
}
void Update()
{
UpdateTargeting(faction.Enemies);
weapons.Tick(Time.deltaTime);
if (hull.IsCritical) EmitDistressSignal();
RegenerateShields();
}
void OnCollisionEnter(Collision c) =&gt; hull.ApplyImpact(c);
// ... 400 more lines of gameplay
}
A system moves every ship
partial struct MoveSystem : ISystem
{
public void OnUpdate(ref SystemState state)
{
foreach (var (transform, velocity) in
SystemAPI.Query&lt;TransformRef, RefRO&lt;Velocity&gt;&gt;())
{
}
}
}


# Page. 105

![Page Image](https://bcdn.docswell.com/page/GEW132Y672.jpg)

Unite/Tokyo
ECS For All
Migrate just the velocity
The MonoBehaviour hands velocity to ECS
public struct Velocity : IComponentData { public float3 Value; }
public class Ship : MonoBehaviour
{
public float3 StartVelocity;
[SerializeField] ShipLoadout loadout;
[SerializeField] Faction faction;
HealthPool hull;
WeaponBank weapons;
void Start()
{
(hull, weapons) = loadout.Build(this);
AddComponentData(this.gameObject,
new Velocity { Value = StartVelocity });
}
void Update()
{
UpdateTargeting(faction.Enemies);
weapons.Tick(Time.deltaTime);
if (hull.IsCritical) EmitDistressSignal();
RegenerateShields();
}
void OnCollisionEnter(Collision c) =&gt; hull.ApplyImpact(c);
// ... 400 more lines of gameplay
}
A system moves every ship
partial struct MoveSystem : ISystem
{
public void OnUpdate(ref SystemState state)
{
foreach (var (transform, velocity) in
SystemAPI.Query&lt;TransformRef, RefRO&lt;Velocity&gt;&gt;())
{
transform.Position +=
velocity.ValueRO.Value *
SystemAPI.Time.DeltaTime;
}
}
}


# Page. 106

![Page Image](https://bcdn.docswell.com/page/47ZPVDXRE3.jpg)

Unite/Tokyo
ECS For All
Migrate just the velocity
The MonoBehaviour hands velocity to ECS
public struct Velocity : IComponentData { public float3 Value; }
public class Ship : MonoBehaviour
{
public float3 StartVelocity;
[SerializeField] ShipLoadout loadout;
[SerializeField] Faction faction;
HealthPool hull;
WeaponBank weapons;
void Start()
{
(hull, weapons) = loadout.Build(this);
AddComponentData(this.gameObject,
new Velocity { Value = StartVelocity });
}
void Update()
{
UpdateTargeting(faction.Enemies);
weapons.Tick(Time.deltaTime);
if (hull.IsCritical) EmitDistressSignal();
RegenerateShields();
}
void OnCollisionEnter(Collision c) =&gt; hull.ApplyImpact(c);
// ... 400 more lines of gameplay
}
A Burst system moves every ship
[BurstCompile]
partial struct MoveSystem : ISystem
{
[BurstCompile]
public void OnUpdate(ref SystemState state)
{
foreach (var (transform, velocity) in
SystemAPI.Query&lt;TransformRef, RefRO&lt;Velocity&gt;&gt;())
{
transform.Position +=
velocity.ValueRO.Value *
SystemAPI.Time.DeltaTime;
}
}
}
Main thread, Burst-compiled, one system for every ship.
Gameplay stays in the MonoBehaviour.


# Page. 107

![Page Image](https://bcdn.docswell.com/page/YJ6M51417V.jpg)

Unite/Tokyo
ECS For All
Go wide with IJobEntity
The system from before
[BurstCompile]
partial struct MoveSystem : ISystem
{
[BurstCompile]
public void OnUpdate(ref SystemState state)
{
foreach (var (transform, velocity) in
SystemAPI.Query&lt;TransformRef, RefRO&lt;Velocity&gt;&gt;())
{
transform.Position +=
velocity.ValueRO.Value *
SystemAPI.Time.DeltaTime;
}
}
}
The same loop as an IJobEntity
[BurstCompile]
partial struct MoveJob : IJobEntity
{
public float DeltaTime;
void Execute(TransformRef transform, in Velocity velocity)
{
transform.Position += velocity.Value * DeltaTime;
}
}


# Page. 108

![Page Image](https://bcdn.docswell.com/page/GJ5ZY4QLE4.jpg)

Unite/Tokyo
ECS For All
Go wide with IJobEntity
The system schedules the job
[BurstCompile]
partial struct MoveSystem : ISystem
{
[BurstCompile]
public void OnUpdate(ref SystemState state)
{
foreach (var (transform, velocity) in
SystemAPI.Query&lt;TransformRef, RefRO&lt;Velocity&gt;&gt;())
{
transform.Position +=
velocity.ValueRO.Value *
SystemAPI.Time.DeltaTime;
new MoveJob { DeltaTime = SystemAPI.Time.DeltaTime }
}
.ScheduleParallel();
}
}
The same loop as an IJobEntity
[BurstCompile]
partial struct MoveJob : IJobEntity
{
public float DeltaTime;
void Execute(TransformRef transform, in Velocity velocity)
{
transform.Position += velocity.Value * DeltaTime;
}
}
Burst-compiled and spread across worker threads.
Gameplay still stays in the MonoBehaviour.


# Page. 109

![Page Image](https://bcdn.docswell.com/page/9E2RGVP3JR.jpg)

Unite/Tokyo
ECS For All
IComponentData in the Inspector
● Add it with Add Component
● Edit its fields like any other component
● Works with Prefabs, Copy + Paste and Undo
● Saved in Scenes
In development. Subject to change.


# Page. 110

![Page Image](https://bcdn.docswell.com/page/D7YDV3587M.jpg)

Unite/Tokyo
ECS For All
Whatʼs next 7.X


# Page. 111

![Page Image](https://bcdn.docswell.com/page/VEN6MVN9E8.jpg)

Unite/Tokyo
ECS For All
Whatʼs next 7.X
● Systems for MonoBehaviours
Control when MonoBehaviours update relative to Systems


# Page. 112

![Page Image](https://bcdn.docswell.com/page/Y79LN6R3J3.jpg)

Unite/Tokyo
ECS For All
Whatʼs next 7.X
● Systems for MonoBehaviours
Control when MonoBehaviours update relative to Systems
● Chunk serialisation in Scenes
Optimised Entity loading when you load your Scene


# Page. 113

![Page Image](https://bcdn.docswell.com/page/G78XKZWLED.jpg)

Unite/Tokyo
ECS For All
Whatʼs next 7.X
● Systems for MonoBehaviours
Control when MonoBehaviours update relative to Systems
● Chunk serialisation in Scenes
Optimised Entity loading when you load your Scene
● GameObject Components in Entity Archetypes


# Page. 114

![Page Image](https://bcdn.docswell.com/page/L7L8ZDNQJR.jpg)

Unite/Tokyo
ECS For All
Whatʼs next 7.X
● Systems for MonoBehaviours
Control when MonoBehaviours update relative to Systems
● Chunk serialisation in Scenes
Optimised Entity loading when you load your Scene
● GameObject Components in Entity Archetypes
● Pure Entities authoring directly in the Scene


# Page. 115

![Page Image](https://bcdn.docswell.com/page/4EM6VPQK7W.jpg)

Unite/Tokyo
ECS For All
Whatʼs next 7.X
● Systems for MonoBehaviours
Control when MonoBehaviours update relative to Systems
● Chunk serialisation in Scenes
Optimised Entity loading when you load your Scene
● GameObject Components in Entity Archetypes
● Pure Entities authoring directly in the Scene
● Mixed hierarchies of Entities and GameObjects


# Page. 116

![Page Image](https://bcdn.docswell.com/page/PERP218679.jpg)

Unite/Tokyo
ECS For All
Whatʼs next 7.X
● Systems for MonoBehaviours
Control when MonoBehaviours update relative to Systems
● Chunk serialisation in Scenes
Optimised Entity loading when you load your Scene
● GameObject Components in Entity Archetypes
● Pure Entities authoring directly in the Scene
● Mixed hierarchies of Entities and GameObjects
● Optional Transform on GameObjects


# Page. 117

![Page Image](https://bcdn.docswell.com/page/P7X3DY8DEX.jpg)

The future vision


# Page. 118

![Page Image](https://bcdn.docswell.com/page/37KYX3KDED.jpg)

Unite/Tokyo
ECS For All
The vision: a scene that is 90% Entities
The scene today
In a complex scene, most things are made
entirely of Unity types: Transform, Renderer,
MeshFilter, Rigidbody. No MonoBehaviours.
(conceptual)


# Page. 119

![Page Image](https://bcdn.docswell.com/page/LJ395GZPJ5.jpg)

Unite/Tokyo
ECS For All
The vision: a scene that is 90% Entities
The scene today
In a complex scene, most things are made
entirely of Unity types: Transform, Renderer,
MeshFilter, Rigidbody. No MonoBehaviours.
So what if all of those were
backed entirely by pure Entity
data?
(conceptual)


# Page. 120

![Page Image](https://bcdn.docswell.com/page/8JDGD1R3JG.jpg)

Unite/Tokyo
ECS For All
The vision: a scene that is 90% Entities
Entities in grey
(conceptual)


# Page. 121

![Page Image](https://bcdn.docswell.com/page/VEP3XQWP78.jpg)

Unite/Tokyo
ECS For All
The vision: a scene that is 90% Entities
Entities in grey
Shipping Unity features powered by ECS
Rendering, Lighting, Physics, …
(conceptual)


# Page. 122

![Page Image](https://bcdn.docswell.com/page/27V4L58VEQ.jpg)

Unite/Tokyo
ECS For All
The vision: a scene that is 90% Entities
Entities in grey
Shipping Unity features powered by ECS
Rendering, Lighting, Physics, …
All Entity data can load faster via chunks
(conceptual)


# Page. 123

![Page Image](https://bcdn.docswell.com/page/5JG1X6517L.jpg)

Unite/Tokyo
ECS For All
The vision: a scene that is 90% Entities
Entities in grey
Shipping Unity features powered by ECS
Rendering, Lighting, Physics, …
All Entity data loads faster via chunks
Same types, all usable from normal
MonoBehaviours
Remember: in C# theyʼre wrappers, so they keep
working
(conceptual)


# Page. 124

![Page Image](https://bcdn.docswell.com/page/47QD84ZNEP.jpg)

Unite/Tokyo
ECS For All
The vision: a scene that is 90% Entities
Entities in grey
Shipping Unity features powered by ECS
Rendering, Lighting, Physics, …
All Entity data loads faster via chunks
Same types, all usable from normal
MonoBehaviours
Remember: in C# theyʼre wrappers, so they keep
working
Keep using MonoBehaviours as you like
…while passively benefiting from ECS internally
(conceptual)


# Page. 125

![Page Image](https://bcdn.docswell.com/page/KE4Z2Q33J1.jpg)

Thank you!


