Unity3D
调用摄像头加载到场景中代码
Unity3D
调用摄像头加载到场景中代码如下:
using UnityEngine;
using System.Collections;
using System.IO;
public class CameraController : MonoBehaviour {
public string deviceName;
public WebCamTexture webTex;
public GameObject objCameraController;
public GameObject objAvatar;
public GameObject ImgAtlas;
public string strTempTime="";
// Use this for initializat
ionvoid Start () {
}// Update is called once per frame
void Update () {
if(strTempTime!="")
{// GameObject.Find("pig5").GetComponent() ...


雷达卡


京公网安备 11010802022788号







