Skip to content

Instantly share code, notes, and snippets.

@hecomi
Last active September 18, 2016 12:35
Show Gist options
  • Save hecomi/30b4458a91b2448df691071fdd705436 to your computer and use it in GitHub Desktop.
Save hecomi/30b4458a91b2448df691071fdd705436 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class CameraTest : MonoBehaviour
{
public int cameraNumber = 0;
private WebCamTexture webcamTexture;
void Start()
{
foreach (var camera in WebCamTexture.devices) {
Debug.Log(camera.name);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment