How can i find max resolution for WebCamTexture

Hi,

I’m having problems with créate a webCamTexture.

How can i find the resolution of a webcam before to créate the "new WebCamTexture(Width, Heigth, FPS) ??

thanks!

Create the WebCam texture using the resolution you want. If that is bigger than the webcam supports, then the size you get will be the size the webcam supports.

You may try set 1280X720P , exact what Unity supporting. Below is the code snip I am using, and working fine with me.

webcamTexture = new WebCamTexture (WebCamTexture.devices [0].name, 1280, 720, 30);            
guiTexture.texture = webcamTexture;    
webcamTexture.Play ();