2 ms·
Unity seems to store things by unique combination of components. In your case they would have an arrays for entities with a position component and a physics co
by jayd16 5y ago
Unity seems to store things by unique combination of components. In your case they would have an arrays for entities with a position component and a physics component, and then an array of entities with a position component and an animation component, and possibly an array for entities with components that have all three.
Unity then schedules work for your system by passing all the relevant arrays.
Described in detail here: https://docs.unity3d.com/Packages/com.unity.entities@0.17/manual/ecs_core.html https://docs.unity3d.com/Packages/com.unity.entities@0.17/ma...