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 corresponding Window. To disable this behavior, set close_when_requested on the WindowPlugin to false.

Functions