A Plugin for bevy
that creates a popup and logs to error on panic.
```rs use bevy::prelude::*;
fn main() { App::new() .addplugins(bevy::log::LogPlugin) .addplugins(bevypanichandler::PanicHandler::default()) // Normal usage... } ```
PanicHandler::default()
will only create a popup and log to error, removing any previous panic handler.
PanicHandler::new(..)
takes a function or static closure to call once the popup is closed.
PanicHandler::default_take_panic()
will take the already-existing panic handler and call that once the popup is closed. (If the default panic handler is used and the logger is initialized, the panic contents will be written twice to stdout).