public void ReceiveMessage(OSCMessage message) { // Create match pattern (For bool values you can use True or False ValueType) var matchPattern = new OSCMatchPattern(OSCValueType.String, OSCValueType.Int, OSCValueType.True, OSCValueType.False); // Check match pattern if (message.IsMatch(matchPattern)) { // Correct message Debug.Log("We got a correct message! Yeah! Maybe you want parse it?"); } else { // Wrong message Debug.Log("Oh, no! It's a wrong message!"); } }