| Crates.io | bevy_window_reveal |
| lib.rs | bevy_window_reveal |
| version | 0.1.1 |
| created_at | 2025-09-07 06:42:50.576328+00 |
| updated_at | 2025-09-07 06:50:24.725466+00 |
| description | A Bevy plugin for controlling the initial visibility of the game window, allowing you to hide the window at startup and reveal it after a specified number of frames or milliseconds. |
| homepage | https://github.com/Meowtaverse-Games/bevy_window_reveal |
| repository | https://github.com/Meowtaverse-Games/bevy_window_reveal.git |
| max_upload_size | |
| id | 1827868 |
| size | 132,678 |
A Bevy plugin for controlling the initial visibility of the game window. This plugin allows you to hide the window at startup and reveal it after a specified number of frames or milliseconds, preventing flickering during initialization.
Add the following to your Cargo.toml:
bevy_window_reveal = "0.1.1"
use bevy::prelude::*;
use bevy_window_reveal::{WindowRevealPlugin, WindowRevealConfig};
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(WindowRevealPlugin(WindowRevealConfig {
frames_after_ready: 2,
ms_after_ready: 500,
initial_clear: Some(Color::BLACK),
}))
.run();
}
frames_after_ready: Number of frames to wait after ready before revealing the windowms_after_ready: Milliseconds to wait after ready before revealing the windowinitial_clear: Initial clear color for the windowMIT License