Exemple #1
0
 public void Release()
 {
     OnStart     =
         OnFrame = null;
     NatCamBridge.Release();
     if (preview)
     {
         Texture2D.Destroy(preview);
     }
     preview = null;
 }
Exemple #2
0
 public void Release()
 {
     OnStart     =
         OnFrame = null;
     #if NATCAM_PRO || NATCAM_PROFESSIONAL
     NatCamBridge.ReleaseBuffer();
     #endif
     NatCamBridge.Release();
     if (preview != null)
     {
         MonoBehaviour.Destroy(preview);
     }
     preview = null;
 }
Exemple #3
0
 public void Release()
 {
     OnStart     =
         OnFrame = null;
     #if NATCAM_PRO
     // ...
     #endif
     NatCamBridge.Release();
     if (preview != null)
     {
         MonoBehaviour.Destroy(preview);
     }
     preview = null;
 }