#bevy-plugin #panic #bevy #popup #panic-handler #error-logging #log-error

bevy-panic-handler

A Bevy plugin that creates a popup message and logs to error on panic

8 stable releases

2.2.0 Feb 20, 2024
2.1.0 Dec 21, 2023
2.0.1 Oct 5, 2023
2.0.0 Sep 25, 2023
0.1.0 Sep 25, 2023

#393 in Game dev

Download history 186/week @ 2024-02-18 23/week @ 2024-02-25 1/week @ 2024-03-03 5/week @ 2024-03-10 21/week @ 2024-03-24 110/week @ 2024-03-31 1/week @ 2024-04-07

133 downloads per month

MIT/Apache

58KB
87 lines

Bevy Panic Handler

Crates.io

A Plugin for bevy that creates a popup and logs to error on panic.

Usage

use bevy::prelude::*;

fn main() {
    App::new()
        .add_plugins(bevy::log::LogPlugin)
        .add_plugins(bevy_panic_handler::PanicHandler::new().build())
        // Normal bevy code...
}

Check examples for more usages.

Example

popup image


lib.rs:

A wrapper for panics using Bevy's plugin system.

On supported platforms (windows, macos, linux) will produce a popup using the msgbox crate in addition to writing via log::error!, or if bevy::log::LogPlugin is not enabled, stderr.

Dependencies

~16–49MB
~780K SLoC