Ejemplo n.º 1
0
 void OnApplicationQuit()
 {
     if (zedCamera != null)
     {
         if (ZedSVOManager != null)
         {
             if (ZedSVOManager.record)
             {
                 zedCamera.DisableRecording();
             }
         }
         zedCamera.Destroy();
     }
     zedCamera = null;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
    /// <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;
        }
    }