//! This example demonstrates the usage of the `inspector-egui` feature. use bevy::prelude::*; use bevy_inspector_egui::quick::{AssetInspectorPlugin, ResourceInspectorPlugin}; use bevy_lookup_curve::{LookupCurve, LookupCurvePlugin}; fn main() { App::new() .add_plugins(DefaultPlugins) .add_plugins(LookupCurvePlugin) .add_plugins(AssetInspectorPlugin::::default()) .register_type::() .add_plugins(ResourceInspectorPlugin::::default()) .add_systems(Startup, setup) .run(); } #[derive(Resource, Default, Reflect)] struct LookupCurveDevState { curve_handle: Handle, curve_noasset: LookupCurve, } fn setup(mut commands: Commands, assets: Res) { let handle = assets.load("example.curve.ron"); commands.insert_resource(LookupCurveDevState { curve_handle: handle, curve_noasset: LookupCurve::default().with_name("Not asset"), }); }