Test your Unity project with the Processing Osc Demo. Send your events through the Processing app and see them appear in the Unity project. There is also a timer in Processing sending events at all time changing the width of a cube in Unity. Download the Unity OSC example here.















Jeroen Boumans 20:35 on August 13, 2012 Permalink
is it also possible to write towards a LED on the arduino board via Unity > Processing? For example if i press a GUI button in unity, a boole will be “true” and so a signal will be written towards processing, that activates the LED.
Ellen 07:44 on September 6, 2012 Permalink
@Jeroen Boumans You can send osc events from Unity with the following code:
oscListener.oscHandler.Send(Osc.StringToOscMessage(”/Your event name”));
Rufael 13:12 on February 11, 2013 Permalink
Hello Ellen! We are a group of students who plan to use this example for a project. Your example works perfectly between Unity and Processing but we would like to use the Processing-sketch on Android.
There are some things that are problematic, for example the Serial library for Processing that does not work on Android.
Do you have any tips on how to go about doing that? To get the Processing Sketch to work on Android so that one can send messages to Unity wirelessly.
Great work otherwise!
Mvh Rufael
Rufael 00:34 on February 12, 2013 Permalink
Actually, we figured it out. You just have to tweak the ip-adresses a bit! Thanks anyway!