jorgegarcia/UnityOSC — pull request #4 by TimGroeneboom (2014-07-22 09:16:55+00:00)
Title: Unity OSC bundle support

For a project I'm working on I extensively use your UnityOSC plugin. Right now I'm controlling the visual output of 50 raspberry pi's ( client ) from one Unity player ( server ). This works like a charm and looks awesome, so many thanks to you for making this possible.

However, I came across a problem that prevented me from receiving OSC Bundles ( I need two way communication ) from openFrameworks to Unity. With some minor adjustments ( hence the pull request ) I was able to fix this.

I also needed to put a sleep in the server thread to prevent my performance on the Unity player from being destroyed.

Furthermore, I added a delegate method invoked from the server thread whenever a new packet is received.