What's the best way to exchange data between Max MSP and Unity?

funconscious's icon

Hello everyone, I'm using C# in Unity and have to send data to my colleague who works in Max MSP. Within every frame change I want to send coordinates and get back some data back to Unity, without a big delay that would be noticeable visually and in audio.

Can Max MSP receive data sent via a C# socket from Unity? I know that it's possible to send data using UDP protocol but as I understand it's not reliable.

vichug's icon

i think there was an external for that, myu : https://cycling74.com/forums/ann-myu-max-unity-interoperability-toolkit-v-1-0-released/replies/1 dunno if its up to date tho

tada's icon

Hi why are you saying is not reliable solution? In the past I have set-up a comunication system (back-and-forth) between max/msp and Unity via OSC without having a signifigant delay. Unity does not have OSC but you can find a C# script for that in Github.