Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// OSC送信インスタンス
OSCSender m_sender;
public Slider slider;
void Start ()
{
m_sender = new OSCSender ();
// 送信クライアント名のセット、IPアドレス、ポート番号は適宜調整
// このIPアドレスとポート番号は受信側のIPアドレスとポート番号です
m_sender.Init ("TestClient", 8890, IPAddress.Parse ("192.168.3." + Config.ipNum));
var e = new Slider.SliderEvent ();
// Sendメソッドで送信
e.AddListener (x => m_sender.Send ("/changeValue", x));
slider.onValueChanged = e;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment