2 ms·
Even the Data-oriented design[0] is eyes opening (which is part of the ECS). The classic example is[1]: Instead of having a list of structs, where each struct
by wdroz 4y ago
Even the Data-oriented design[0] is eyes opening (which is part of the ECS).
The classic example is[1]: Instead of having a list of structs, where each struct get some types (int, float, ...), you use one struct, where the fields are list of types (array of int, array of floats, ...)
[0] -- https://en.wikipedia.org/wiki/Data-oriented_design https://en.wikipedia.org/wiki/Data-oriented_design
[1] -- https://en.wikipedia.org/wiki/AoS_and_SoA https://en.wikipedia.org/wiki/AoS_and_SoA
- kramerger 4y agoUnity uses ECS, just in a more visual way.
- wdroz 4y agoI did some Unity3d back in 2013, I don't remember using ECS (intentionally?). After a quick search, it's seem that the MonoBehaviour are the old way and ECS the new ways? That's nice.
- kramerger 4y agoWhen you drag and drop something into an object, you are actually adding a component to an entity. It's kinda behind the scene ECS.