Skip to content

New OscMethod system

Compare
Choose a tag to compare
@DrLuke DrLuke released this 16 Oct 15:57
· 16 commits to main since this release

This release changes how bevy_rosc works under the hood to make it more flexible to use.

New Features

Bevy Plugin

Previously you had to set up quite a few things to get started. Now you can just fall back to a plugin that will open a UDP server at the provided address and serve two default OSC methods.

Check out the example to see how little setup is required!

New OscMethod trait

OSC methods are components that can receive OSC messages at their address(es). Previously there were was only one fixed OSC method component available, which made using more than one of them for your entity cumbersome. The new trait will enable you to create custom OSC method components that will be a lot more flexible to use.

Check out the relevant example.

Dispatcher now uses events and dispatch systems

A generic system is used to dispatch messages to components implementing OscMethod. It receives a dispatch event sent by the dispatcher and iterates over all method components to deliver the message to matching methods. Just add the system for your component to your app and you're good to go!

See this line in the example.