| Crates.io | bevy_window_as_ui_root |
| lib.rs | bevy_window_as_ui_root |
| version | 0.1.0 |
| created_at | 2025-10-01 01:55:36.616368+00 |
| updated_at | 2025-10-01 01:55:36.616368+00 |
| description | Small bevy utility for spawning UI roots as independent windows. |
| homepage | |
| repository | https://github.com/Gingeh/bevy_window_as_ui_root/ |
| max_upload_size | |
| id | 1861963 |
| size | 161,146 |
Easily spawn windows as independent UI roots. Ideal for debug widgets!

app.add_plugins(WindowAsUiRootPlugin);
commands.spawn((
WindowAsUiRoot,
BackgroundColor(Color::WHITE),
children![(
Text::new("Hello World!"),
TextColor(Color::BLACK),
)],
));
Insert the WindowAsUiRoot component on an entity and this plugin will:
Node, Window, and Camera components if they don't already exist.CloseWith relation to automatically close nested windows.WindowPlugin.exit_condition to ExitCondition::OnPrimaryClosed to prevent popups from outliving the main window.Node { width: percent(100), height: percent(100), ..default() } on the UI root to make it resizable by the user.The main branch currently targets Bevy 0.17.
Crate version 0.1.0 targets Bevy 0.17.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.