

Get the message data with GetFloat(index).Create the function that will receive the OSC message.In Start() set the name of a function to be called when a specific OSC message is received: osc.SetAddressHandler( "/CubeXYZ", OnReceiveXYZ ).

Create a reference to the OSC script on the empty gameObject you created: public OSC osc.The name of each asset should clearly describe its type and functionality. Import the OSC.cs script into your project by dragging it into your assets (the script can be found in the "Assets" folder of the Unity project).Create an empty GameObject and drag theĬonfigure the OSC port and IP settings to match your needs. Use as few materials on objects as possible. The following instructions are for using UnityOSC in your own projects : Open the folder in Unity and everything is ready to run. The exampleThe download (and Github projet) is an actual Unity project. The source code is converted into compiled bytecode, and only that bytecode is shipped with the game.

