void OnDisable()
        {
            // When object is deselected in Edit Mode then we stop listening.
            if (!Application.isPlaying && _oscOut.isOpen)
            {
                _oscOut.Close();
            }

            // Unsubscribe from messsages.
            _oscOut.UnmapAnyMessage(OnOSCMessage);
        }
Esempio n. 2
0
        void OnDisable()
        {
            // When object is deselected in Edit Mode then we stop listening.
            if (!Application.isPlaying && _oscOut.isOpen)
            {
                _oscOut.Close();
            }

            // Unsubscribe from messsages.
            OscEditorUI.RemoveInspectorMessageListener(_oscOut, OnOSCMessage, ref _inspectorMessageEventObject);
        }
Esempio n. 3
0
        void OnDisable()
        {
            // When object is deselected in Edit Mode then we stop listening.
            if (!Application.isPlaying && oscOut.isOpen)
            {
                oscOut.Close();
            }

            // Unsubscribe from messsages.
            oscOut.onAnyMessage.RemoveListener(OnOSCMessage);
        }
 void OnOpenChanged(bool on)
 {
     if (on)
     {
         oscOut.Open(_port, _ipAddress);
     }
     else
     {
         oscOut.Close();
     }
 }
Esempio n. 5
0
 void OnApplicationQuit()
 {
     if (oscReceive.isOpen)
     {
         oscReceive.Close();
     }
     if (oscSend.isOpen)
     {
         oscSend.Close();
     }
 }
Esempio n. 6
0
        protected override void OnStop()
        {
            foreach (var plugin in Plugins)
            {
                plugin.HostShutdown();
            }

            MidiIn?.Close();
            MidiIn?.Dispose();

            OscOut?.Close();
            OscOut?.Dispose();

            OscIn?.Close();
            OscIn?.Dispose();
        }
Esempio n. 7
0
 void OnDisabled()
 {
     _oscOutToMain.Close();
     _oscOutToRobot.Close();
 }