Hi,
I try to make a picture with the Webcam, but I only get darkness, what could be wrong?
In Start:
WebCamDevice devices = WebCamTexture.devices;
Debug.Log(devices[0].name);
_deviceName = devices[0].name;
wct = new WebCamTexture(_deviceName);
wct.Play();
In a Coroutine, which is then started with StartCoroutine
Texture2D snap = new Texture2D(wct.width, wct.height);
snap.SetPixels(wct.GetPixels());
snap.Apply();