Ejemplo n.º 1
0
        void OnGUI()
        {
            if (GUILayout.Button(new GUIContent("Send Data", "Send Data"), GUILayout.MinHeight(30)))
            {
                //Debug.Log("OnOSCMessageSend1:");
                oscSender1.SendOSCMessage();
            }

            GUILayout.Space(10);
            GUILayout.Label("oscTarget1 OSC IN Message:");
            GUILayout.Label(oscTarget1Msg);
        }
Ejemplo n.º 2
0
        void OnGUI()
        {
            GUILayout.Label("OSC GUI Labels", EditorStyles.boldLabel);
            pageLabel1 = EditorGUILayout.TextField("Page 1", pageLabel1);
            pageLabel2 = EditorGUILayout.TextField("Page 2", pageLabel2);
            pageLabel3 = EditorGUILayout.TextField("Page 3", pageLabel3);
            pageLabel4 = EditorGUILayout.TextField("Page 4", pageLabel4);
            pageLabel5 = EditorGUILayout.TextField("Page 5", pageLabel5);

            //groupEnabled = EditorGUILayout.BeginToggleGroup ("Optional Settings", groupEnabled);
            //myBool = EditorGUILayout.Toggle ("Toggle", myBool);
            //myFloat = EditorGUILayout.Slider ("Slider", myFloat, -3, 3);
            //EditorGUILayout.EndToggleGroup ();

            if (GUILayout.Button(new GUIContent("Send Data", "Send Data"), GUILayout.MinHeight(30)))
            {
                Debug.Log("OnOSCMessageSend All");
                oscSender1.ClearData();
                oscSender1.AppendData(pageLabel1);
                oscSender1.Enable();
                oscSender1.SendOSCMessage();

                oscSender2.ClearData();
                oscSender2.AppendData(pageLabel2);
                oscSender2.Enable();
                oscSender2.SendOSCMessage();

                oscSender3.ClearData();
                oscSender3.AppendData(pageLabel3);
                oscSender3.Enable();
                oscSender3.SendOSCMessage();

                oscSender4.ClearData();
                oscSender4.AppendData(pageLabel4);
                oscSender4.Enable();
                oscSender4.SendOSCMessage();

                oscSender5.ClearData();
                oscSender5.AppendData(pageLabel5);
                oscSender5.Enable();
                oscSender5.SendOSCMessage();
            }

            //GUILayout.Space(10);
            //GUILayout.Label("oscTarget1 OSC IN Message:");
            //GUILayout.Label(oscTarget1Msg);
        }