use bevy::prelude::*; use bevy_variable_property::prelude::*; #[derive(Component)] struct MyComponent(pub IntervalProperty>); fn main() { App::new() .add_plugins(DefaultPlugins) .add_systems(Startup, setup) .add_systems(Update, tick) .run(); } fn setup(mut commands: Commands) { commands.spawn(Camera2dBundle::default()); commands.spawn(MyComponent(IntervalProperty::new( (0.0..=100.0).into(), 0.5, ))); } fn tick(mut query: Query<&mut MyComponent>, time: Res