コード例 #1
0
 void OnGUI()
 {
     if (GUILayout.Button("single"))
     {
         oscManager.SendPacket(createMessage(), hostname, port);
     }
     if (GUILayout.Button("double"))
     {
         oscManager.SendPacket(createMessage(), hostname, port);
         oscManager.SendPacket(createMessage(), hostname, port);
     }
     if (GUILayout.Button("bundle"))
     {
         oscManager.SendPacket(createBundle(), "localhost", port);
     }
 }
コード例 #2
0
    void SendOSC(Vector3 pos, Vector3 rot, Rect rect)
    {
        OSCManager manager = OSCManager.instance;
        OSCMessage msg     = OSCMessage.Create("/calibration", pos.x, pos.y, pos.z, rot.x, rot.y, rot.z, rect.x, rect.y, rect.width, rect.height);

        manager.SendPacket(msg, ipAddress, 7000);
    }
コード例 #3
0
 public void SendOSCMessage(OSCPacket packet)
 {
     oscManager.SendPacket(packet, sendEndPort);
 }