Entitas icon indicating copy to clipboard operation
Entitas copied to clipboard

Show class short name for components in the hierarchy

Open OmiCron07 opened this issue 3 years ago • 4 comments

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

OmiCron07 avatar Aug 19 '20 18:08 OmiCron07

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

c0ffeeartc avatar Aug 19 '20 19:08 c0ffeeartc

It's already to true.

OmiCron07 avatar Aug 19 '20 19:08 OmiCron07

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

c0ffeeartc avatar Aug 19 '20 19:08 c0ffeeartc

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

WeslomPo avatar Nov 30 '20 07:11 WeslomPo

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

sschmid avatar Jul 03 '23 13:07 sschmid