Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

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

Open
cfortuner opened this issue Aug 26, 2020 · 0 comments
Open

Comments

@cfortuner
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant