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); } }
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); }
public void SendOSCMessage(OSCPacket packet) { oscManager.SendPacket(packet, sendEndPort); }