Closed DavidPeicho closed 4 years ago
When entity are destroyed, either by calling removeAllEntities or Entity.remove(), the component don't get disposed. This is because removeEntity() is called first, clearing the components list whem the pool calls entity.reset().
removeAllEntities
Entity.remove()
removeEntity()
entity.reset()
I believe there are other little issues linked to this one, such as https://github.com/MozillaReality/ecsy-three/issues/31
LGTM, thanks for doing this!
When entity are destroyed, either by calling
removeAllEntities
orEntity.remove()
, the component don't get disposed. This is becauseremoveEntity()
is called first, clearing the components list whem the pool callsentity.reset()
.