Open MiniaczQ opened 1 month ago
0.14
use bevy::prelude::*; fn main() { App::new() .add_plugins(MinimalPlugins) .init_state::<AppState>() .run(); } #[derive(Debug, Clone, Copy, Default, Eq, PartialEq, Hash, States)] struct AppState;
Crashes inside init_state on an unwrap that assumed a resource would be available from the plugin. The plugin detection should crash instead with information about missing plugin.
init_state
unwrap
Related: #14151
Bevy version
0.14
What you did
What went wrong
Crashes inside
init_state
on anunwrap
that assumed a resource would be available from the plugin. The plugin detection should crash instead with information about missing plugin.