bevy_persistent_windows/
bundles.rs

1//! Bundles.
2
3use crate::prelude::*;
4
5/// Persistent window bundle.
6///
7/// Made of `a window` and `a persistent state` for it.
8///
9/// Changes made to `window` or `state` components
10/// will be synchronized by [PersistentWindowsPlugin].
11#[derive(Bundle)]
12pub struct PersistentWindowBundle {
13    /// Window component.
14    pub window: Window,
15    /// Persistent window state component.
16    pub state: Persistent<WindowState>,
17}