/// Breaks apart meshes that do not have textures, also showcases that use of the /// DespawnMeshOverride to make Circle meshes break apart cleaner. use bevy::prelude::*; use bevy_color::palettes::basic::BLUE; use bevy_despawn_particles::prelude::*; #[derive(Component, Default)] pub struct Marker; pub struct MyTimer(pub Timer); impl Default for MyTimer { fn default() -> Self { Self(Timer::from_seconds(0.5, TimerMode::Once)) } } fn main() { App::new() .add_plugins(DefaultPlugins) .add_plugins(DespawnParticlesPlugin) .add_systems(Startup, setup) .add_systems(Update, tick) .run(); } fn setup( mut commands: Commands, color_materials: ResMut>, meshes: ResMut>, ) { commands.spawn(Camera2dBundle::default()); spawn_meshes(commands, color_materials, meshes); } fn tick( mut timer: Local, time: Res