ecsyjs/ecsy

creating a new Entity copies over any values from Custom Entity class

Opened this issue · 0 comments

hey! Just wanted to post this in case anyone else came across it.

When you extend the entity class _Entity, you need to make sure to reset any custom properties you assign on the entity or else they will be copied over to any new entities that get created!

I think it would be nice to have createEntity call a reset method or avoid copying over these properites.