void Update() { // We update the content of message2 and send it again. _message.Set(0, getWidth.left_width); _message.Set(1, getWidth.right_width); _oscOut.Send(_message); }
void Update() { // We update the content of message2 and send it again. _message2.Set(0, Time.frameCount); _message2.Set(1, Time.time); _message2.Set(2, Random.value); _oscOut.Send(_message2); }
void Update() { // Update the message. _outgoingMessage.Set(0, outgoingText); // Send the message, knowing that because oscOut.bundleMessagesOnEndOfFrame // is set to true, it will be bundles with other messages and send in one go. _oscOut.Send(_outgoingMessage); }
void Update() { // Update the bundle time tag if you want to. _bundle.timeTag = new OscTimeTag(System.DateTime.Now); // Update message arguments. _message1.Set(0, Random.value); _message2.Set(0, Random.value); // Send the bundle, containing the two messages. _oscOut.Send(_bundle); // Log. Debug.Log("Send as bundle\n" + _message1 + " AND " + _message2); }