use bevy::prelude::*; use bevy_osc::{Osc, OscEvent, OscSender, OscSettings}; use nannou_osc::{Message, Packet, Type}; fn main() { App::new() .add_plugins(DefaultPlugins) .add_plugins(Osc) .insert_resource(OscSettings { recv_addr: Some("127.0.0.1:34254"), send_addr: Some("127.0.0.1:34254"), log: false, ..Default::default() }) .add_systems(Update, event_listener_system) .add_systems(Update, event_sender_system) .run(); } //Make events a type param? fn event_listener_system(mut events: EventReader) { for my_event in events.read() { info!("OSC Package: {:?}", my_event.packet); } } //Notice: This is system sends a packet roughly every second, look at the fixed_timestep bevy example for a higher accuracy fn event_sender_system(events: Option>, time: Res