bevy_splash_screen
bevy_splash_screen copied to clipboard
Crashes with Splash Screen and bevy_asset_loader
I am combining both this crate and bevy_asset_loader. However I am getting an occasional error where clicking too fast to skip will crash the game. I've traced this to the fact that the splash_skip function runs in any state and therefore when my app is in the loading state clicking will skip to the game state before its loaded and will cause systems to crash because the game hasnt been properly loaded.
Solution
If splash_skip is given a .run_if(in_state(self.state.clone())) then it should fix these issues and correctly only let the splash be skipped when its actually being run