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); }
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); }
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(); } }
void OnApplicationQuit() { if (oscReceive.isOpen) { oscReceive.Close(); } if (oscSend.isOpen) { oscSend.Close(); } }
protected override void OnStop() { foreach (var plugin in Plugins) { plugin.HostShutdown(); } MidiIn?.Close(); MidiIn?.Dispose(); OscOut?.Close(); OscOut?.Dispose(); OscIn?.Close(); OscIn?.Dispose(); }
void OnDisabled() { _oscOutToMain.Close(); _oscOutToRobot.Close(); }