WindowCloseRequested
WindowCloseRequested
- window : bevy_ecs::entity::Entity
Description
An event that is sent whenever the operating systems requests that a window be closed. This will be sent when the close button of the window is pressed.
If the default
WindowPlugin
is used, these events are handled by closing the correspondingWindow
. To disable this behavior, setclose_when_requested
on theWindowPlugin
tofalse
.