-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReactiveSystem gets wrong entities #25
Comments
The real problem is destroyed entities (not just his components) will be reused to create another entity. It works like any GroupObservers (and by extension, ReactiveSystems...) WILL NOT notice this, they just think the entity not match his requirements so they keep anyways a reference of them (if they matched before) That's why in the examples provided in sschmid acount (the match-one and the cars one) they built a "DestroySystem" which executes at the very end of the loop, destroying in that moment any entity with the component "DestroyComponent". |
Thanks for your explanation. For now, I won't use Regards |
Next release 0.22.0 will solve this issue. |
Hi,
When
GroupEventType.OnEntityRemoved
is used withIReactiveSystem
,List<Entity> entities
parameter on methodpublic void Execute(List<Entity> entities)
doesn't correspond to the removed entities (seems to match random entities within the pool)It would be useful to get the removed components
Regards
The text was updated successfully, but these errors were encountered: