You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there are multiple collectors defined as triggers within a MultiReactiveSystem and more than one is met, Entitas throws an EntityIsAlreadyRetainedByOwnerException. It's possible that I might not be using the MultiReactiveSystem as it's intended to be, but I think that the exception should not be the expected behaviour in cases like this. Probably the best would be to simply not retain it again (or duplicate its reference) in the execution list.
The typical case where I'm experiencing this issue is when I've one entity with both A and B components and I remove both of them in the same frame. I can't listen to just one of them because there are other cases where A and B might be removed separately.
Is there a solution or turn around for this, or maybe this is more of a conceptual discussion regarding the API behaviour?
Cheers and thanks in advance!
The text was updated successfully, but these errors were encountered:
felippeduran
changed the title
EntityIsAlreadyRetainedByOwnerException is thrown when a MultiReactiveSystem is trigger by the same entity and different collectors
EntityIsAlreadyRetainedByOwnerException is thrown when a MultiReactiveSystem is triggered by the same entity and different collectors
Oct 31, 2018
Hi,
When there are multiple collectors defined as triggers within a
MultiReactiveSystem
and more than one is met, Entitas throws anEntityIsAlreadyRetainedByOwnerException
. It's possible that I might not be using theMultiReactiveSystem
as it's intended to be, but I think that the exception should not be the expected behaviour in cases like this. Probably the best would be to simply not retain it again (or duplicate its reference) in the execution list.The typical case where I'm experiencing this issue is when I've one entity with both
A
andB
components and I remove both of them in the same frame. I can't listen to just one of them because there are other cases whereA
andB
might be removed separately.Is there a solution or turn around for this, or maybe this is more of a conceptual discussion regarding the API behaviour?
Cheers and thanks in advance!
The text was updated successfully, but these errors were encountered: