A simple example of using IEnableableComponent
It's a replacement for tag components. Since Unity ECS stores data in chunks based on their archetype, tag components are considered a lot less performant due to structural changes when they are removed or added.
https://coffeebraingames.wordpress.com/2023/08/21/a-simple-example-of-using-ienableablecomponent/
Read more about archetypes and how entities are located in memory: https://docs.unity3d.com/Packages/com.unity.entities@1.0/manual/concepts-archetypes.html
#dots #ecs
Post #2309
460