Пример #1
0
 private void OnDestroy()
 {
     if (videoInput != null)
     {
         videoInput.RemoveDevice(usedDeviceName);
     }
 }
Пример #2
0
        private void OnDestroy()
        {
            Destroy(mRtBuffer);
            Destroy(mTexture);

            if (mVideoInput != null)
            {
                mVideoInput.RemoveDevice(mUsedDeviceName);
            }
        }