Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Cannot retrieve latest commit at this time.
0 contributors

Users who have contributed to this file

13 lines (7 sloc) 877 Bytes

Entity

Entity is an ID. You can think of it as a super lightweight GameObject that does not even have a name by default.

You can add and remove components from entities at runtime. Entity ID's are stable. They are the only stable way to store a reference to another component or Entity.

You can add and remove components from entities at runtime in much the same way as a GameObject. Entities can be created from Prefabs by using ComponentDataWrapper. The EntityManager will parse the Prefab for ComponentData and add it when it creates the Entity.

Iterating entities

Iterating over all entities that have a matching set of components, is at the center of the ECS architecture.

Back to Unity Data-Oriented reference