sschmid / Entitas

Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
MIT License
7k stars 1.11k forks source link

The ability to name entities #1038

Closed Discipol closed 1 year ago

Discipol commented 1 year ago

Right now I made a NameComponent to store the name but it feels like CreateEntity( "ABC) and entity.name = "ABC" should be a default behavior.

sschmid commented 1 year ago

Creating a NameComponent as you mentioned sounds good. This way you could also use it to get entities by name with an EntityIndex. I don't think having a name should be default behaviour on an entity. It increases the size of the entity if you are using the name or not.

Will close for now, but please feel free to reopen if I'm missing something!