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

bevy-panic-handler

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

9 stable releases (3 major)

3.0.0 Jul 17, 2024
2.2.0 Feb 20, 2024
2.1.0 Dec 21, 2023
2.0.1 Oct 5, 2023
0.1.0 Sep 25, 2023

#644 in Game dev

Download history 5/week @ 2024-10-13 25/week @ 2024-10-20 220/week @ 2024-10-27 31/week @ 2024-11-03 18/week @ 2024-11-10 6/week @ 2024-11-24 1/week @ 2024-12-01 14/week @ 2024-12-08 22/week @ 2024-12-15

518 downloads per month

MIT/Apache

57KB
101 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

~21–34MB
~567K SLoC