private void OnDestroy() { if (videoInput != null) { videoInput.RemoveDevice(usedDeviceName); } }
private void OnDestroy() { Destroy(mRtBuffer); Destroy(mTexture); if (mVideoInput != null) { mVideoInput.RemoveDevice(mUsedDeviceName); } }