How to initialize the webcam in a Unity3D application?

-2

I'm creating an Augmented Reality application using Unity and Vuforia. The application uses a webcam, in Unity running the tests it is working, however when I export the application to Windows only a black screen appears, because the webcam does not initialize along with the application.

  

I would like to know what needs to be done so that when I start the application the webcam will also initialize?

    
asked by anonymous 13.04.2016 / 16:31

1 answer

0

In most cases, an external executable (I imagine it is your case, since there was an export) does not understand a reference to an API after compiling. A simple solution is to put in the folder where the project is exported, and that will be the executable, the essential DLLs of the VUFORA libraries that you have used in your code.

    
13.04.2016 / 19:37