Skip to content

Instantly share code, notes, and snippets.

@drawcode
Created March 5, 2013 03:16
Show Gist options
  • Select an option

  • Save drawcode/5087715 to your computer and use it in GitHub Desktop.

Select an option

Save drawcode/5087715 to your computer and use it in GitHub Desktop.
Unity WebCamTexture
for( var i = 0 ; i < devices.length ; i++ ) {
if (devices[i].isFrontFacing) {
frontCamName = devices[i].name;
}
else {
backCamName = devices[i].name;
}
}
frontTex = new WebCamTexture(frontCamName, width, height, framesPerSec);
backTex = new WebCamTexture(backCamName, width, height, framesPerSec);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment