Skip to content
Discussion options

You must be logged in to vote

While events can linger over a frame this is only to ensure every system will process those events. Every event will only be seen once by each system, it just may be a frame late if the system already ran before the event was sent. I have encountered similar issues with those events crossing frame boundaries under certain circumstances. Typically, in places where the entity may be destroyed before the the event is processed. You may need to implement checking to see if the entity exists before attempting to handle the event.

Since you are doing events associated with an Entity, it may be helpful to use the 3rd party library bevy_eventlistener. Based on my understanding, the library is bui…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cloud303-cholden
Comment options

Answer selected by cloud303-cholden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants