WebCamTexture not working in Windows 10 standalone

Hello community,

I am developing a Windows standalone application using a homemade plugin in OpenCV.
The project is working perfectly in the editor, but when I tried to deploy it, I realized the camera was not working. I tried to remove all the dependencies regarding OpenCV so I just let the most simple example of the WebCamTexture, even with that, the camera is not feeding a 2D Texture.

I have executed the standalone version with 4 different computers using the last version of Windows 10, I saw that project is working perfectly in my personal computers but not in my workplace computers.

I already tried these solutions:

  • Checked the camera permissions.
  • Checked the lights of the webcam, sometimes its blinking and sometimes the lights are off.
  • Installed the last drivers of my webcam. (Logitech BRIO Ultra HD Pro webcam)

So, my question is:

Is it possible that Unity had some OS dependencies when it’s using the WebCamTexture?

Thanks in advance for your answer!

WebCamTexture on Windows uses DirectShow IIRC. That should be part of the OS.

Are there any errors in the player log by any chance?

1 Like

There aren’t any errors, I tried to install different versions of directX and it was always the same.
Finally I removed the antivirus and now the camera is working!!!
Apparently Kapersky was blocking DirectShow in the Unity app but I never got any notification about it.

Thanks for your answer, without this clue I could not find the solution.

1 Like

Hello, did you find a solution. aid.