bevy-inspector-egui 0.6.1

Inspector plugin for the bevy game engine
Documentation
#![allow(dead_code)]
use bevy_inspector_egui::{Context, Inspectable};

#[derive(Default, Clone)]
struct CustomAttributes {
    optional: Option<u8>,
    defaulted: f32,
}

struct CustomType;
impl Inspectable for CustomType {
    type Attributes = CustomAttributes;
    fn ui(
        &mut self,
        _: &mut bevy_inspector_egui::egui::Ui,
        _: Self::Attributes,
        _: &Context,
    ) -> bool {
        false
    }
}

#[derive(Inspectable)]
struct Data {
    #[inspectable(optional = Some(10), defaulted = 1.0)]
    explicit: CustomType,
    #[inspectable(optional = 10)]
    implicit: CustomType,
    none: CustomType,
}