void OnApplicationQuit() { if (zedCamera != null) { if (ZedSVOManager != null) { if (ZedSVOManager.record) { zedCamera.DisableRecording(); } } zedCamera.Destroy(); } zedCamera = null; }
void OnApplicationQuit() { if (zedCamera != null) { if (ZedSVOManager != null) { // If recording module was activated, disable it to "close" the SVO file if (ZedSVOManager.record) { zedCamera.DisableRecording(); } } //Destroy the ZED Camera plugin zedCamera.Destroy(); } zedCamera = null; }
/// <summary> /// Raises the application quit event /// </summary> void OnApplicationQuit() { zedReady = false; OnCamBrightnessChange -= CameraBrightnessChangeHandler; Destroy(); if (zedCamera != null) { if (zedSVOManager != null) { if (zedSVOManager.record) { zedCamera.DisableRecording(); } } zedCamera.Destroy(); zedCamera = null; } }