I am trying to use a camera preview in my project.
Initially I had flickering issues when requesting a WebCamTexture with the resolution of the device screen, so I’m going with the default values.
Now it works for a couple of minutes before the screen starts to flicker (black… image… black… image…)
This is the code in the Start method of my script:
_webCamTexture = new WebCamTexture();
_material.mainTexture = _webCamTexture;
_webCamTexture.wrapMode = TextureWrapMode.Clamp;
_webCamTexture.Play();