use bevy::prelude::*; use bevy_mod_osc::osc_sender::OscSender; // use rosc::OscType; fn main() { App::new() .add_plugins(MinimalPlugins) // NOTE: IPv6 is not compatible with IPv4, so you can't send messages to IPv4 receiver // if you want to make compatible with both, you should use IPv4 over IPv6 router or so on .insert_resource(OscSender::new("[::1]", 1234)) .add_systems(Startup, setup) .run(); } fn setup( mut osc_sender: ResMut, ) { // osc send message osc_sender.send("/test", [1, 2, 3]); println!("Sent OSC message: /test 1 2 3 to {}:{}", osc_sender.host, osc_sender.port); std::process::exit(0); }