Run a system before the bevy application exits #5281
Answered
by
tim-blackbird
Akaam-Zain
asked this question in
Q&A
-
I have client-server bevy application which communicates through a TCP connection. When the client window is closed by the client - before the application actually exits I want to send a message to the server indication that the client is terminated. For that I need to know how I could add a system just before the bevy application exits. Appreciate your help. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
tim-blackbird
Jul 11, 2022
Replies: 1 comment 3 replies
-
You can listen for an AppExit event in a system in the |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Akaam-Zain
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can listen for an AppExit event in a system in the
PostUpdate
stage.