private WebCamTexture webTexture;
private WebCamDevice camDevice;
public Class MyClass
{
void Start()
{
camDevice = WebCamTexture.devices[0];
webTexture = new WebCamTexture(camDevice.name, 1920, 1200);
webTexture.Play();
}
}
Unity开启摄像头
最新推荐文章于 2024-04-24 10:07:11 发布