title: Switch device camera in Unity 3d
body: <p>I am using WebCamTexture class to open camera from device. I want to switch camera from front to back and vice versa in between the game play. Can anybody help?</p>
  
  <pre><code>    WebCamDevice[] devices = WebCamTexture.devices;
      WebCamTexture   webCamTexture = new WebCamTexture(devices[1].name);
      renderer.material.mainTexture = webCamTexture;
      webCamTexture.filterMode = FilterMode.Trilinear;
      webCamTexture.Play();
  </code></pre>
  
  <p>This opens my front camera. But I can't switch the camera.</p>