Closed Jarrio closed 5 years ago
It was put there mainly for debug purpose (it is returned in toString()
) and not supposed to be "used". What are you planning to do with it?
and I expect it to be DCE'd in production where no toString()
is called.
I was using it to categorise entities. So this.name = "bullet";
then use it in a system like
if (node.entities.name == "bullet") {}
Perhaps you want a Category
component. The name
field is really intended for debugging only.
That's fine, I thought it was an oversight and not an intention!
Perhaps I will just rename the field as alias
so it looks less "useful"
As far as I can see this variable should be usable in a public manner, otherwise I'm not sure what the intended purpose for this var is meant to be