Closed tylerkayser closed 1 year ago
You can add a feature for it, and only derive Inspectable
if that feature is enabled:
#[cfg_attr(feature = "inspector", derive(Inspectable)]
struct YourStruct {}
[features]
inspector = ["bevy-inspector-egui"]
[dependencies]
bevy-inspector-egui = { version = "..", optional = true }
Is there any way to avoid including
bevy_inspector_egui
as a dependency? I'd like for it to be only a dev-dependency, but theInspectable
derive seems to be required for every custom type (enum in my case).