Were going to send OSC into and out of Unreal using TouchOSC
Im using TouchOSC and Unreal on the same machine for now.
In Unreal make sure OSC plugin is enabled then put the following into a Level Blueprint:

The OSC server gets incoming messages from TouchOSC. The Client IP address is the IP of the machine the Unreal is running on. We make a variable for the OSCServer for later and we use the unbind all events node to clear old servers when testing with play mode in the editor.
Bind Event To On OSC Message Received is wired via the orange wire, to a custom event which deals with incoming OSC messages. Create OSCClient sends OSC messages out from Unreal – (& this still seems backwards to me Server to receive, Client to send *sigh*).
We make a variable OSCClient to store a reference for use later.
(Note: if we want to send OSC messages to other Touch OSC panels or indeed PC’s on our network then the Touch OSC Controller IPAddress would be the IP of that other machine.)
Sending messages from TOUCH OSC to Unreal
My Custom Event is wired (via the orange wire) to the Bind Event To On OSC Message Received and it looks like this:

–It makes the message a variable – in my case it’s a float coming from my TouchOSC Volume slider. Then it converts the address – the name of the TouchOSC control (VOLUME ) that’s is sending the message float. And the it prints it out onscreen.
When I run Unreal and my TouchOSC panel and l wiggle the VOLUME control, I see changing numbers onscreen:
Sending messages from Unreal to TouchOSC
I made a simple function to send OSC messages, it looks like this:
The String input is the address, in this case for testing, I’m sending values back to my TouchOSC Volume slider. So the string is /Volume
Inside the function it converts the string to a message address and adds an incoming float value to the OSC message. The OSCClient variable is the reference we set earlier. After we send the message we clear it.

To send continuous values I’ve got a skeletal animation in the level and I’m getting a reference to its Hand_L bone. The value ranges are around 50 -100 to Im mapping the range down to the 0-1 that the volume slider wants. Event tick sends values every tick.

Now my volume slider moves up and down as the animation plays:

Note you can use Protokol to test if you are sending or receiving OSC. But if you run TouchOSC and Protokol at the same time only one gets the messages sent by Unreal.
Unreal sending OSC to TouchOSC
Unreal sending OSC to Protokol



