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);
        }
Example #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);
        }
Example #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();
     }
 }
Example #5
0
 void OnApplicationQuit()
 {
     if (oscReceive.isOpen)
     {
         oscReceive.Close();
     }
     if (oscSend.isOpen)
     {
         oscSend.Close();
     }
 }
Example #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();
        }
Example #7
0
 void OnDisabled()
 {
     _oscOutToMain.Close();
     _oscOutToRobot.Close();
 }