sschmid / Entitas

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

Show class short name for components in the hierarchy #945

Closed OmiCron07 closed 1 year ago

OmiCron07 commented 4 years ago

image

It would be nice to show only the class name and not the full namespace in the component list of an entity in the hierarchy. With the short name, I would be able to see more components thant just the first one.

Same for console logs :

image

c0ffeeartc commented 4 years ago

Can you make this value true in jenny.properties and see if it makes difference and doesn't break something else? Entitas.CodeGeneration.Plugins.IgnoreNamespaces = true

OmiCron07 commented 4 years ago

It's already to true.

c0ffeeartc commented 4 years ago

Ok. So the problem is inside Entity.ToString it was changed in some commit to improve visual debugging performance.

You can move component outside namespace, or modify Entity.ToString and recompile Entitas.dll

WeslomPo commented 3 years ago

I just adding ToString to all my components, sounds crude, but when you do it in new project - this is not a problem.

sschmid commented 1 year ago

Yes, you can override ToString() in the component to customize what's shown in the hierarchry