Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// OSC受信インスタンス
OSCReceiver m_receiver;
void Start ()
{
m_receiver = new OSCReceiver();
m_receiver.Init ("TestServer", 8890);
// 受信インスタンスに受信した時のイベントを登録
m_receiver.onListenToOSCMessage += OnListenToOSCMessage;
}
void OnListenToOSCMessage (UnityOSC.OSCPacket obj)
{
// 受信したときの処理
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment