private void OnDestroy() { var webCamInput = GetComponent <WebCamInput>(); webCamInput.OnTextureUpdate.RemoveListener(OnTextureUpdate); palmDetect?.Dispose(); landmarkDetect?.Dispose(); }
void OnDestroy() { webcamTexture?.Stop(); palmDetect?.Dispose(); landmarkDetect?.Dispose(); }