Vuforia切换前后摄像头
作者:互联网
private bool isbackCamera = true;
private void SwitchCamera()
{
if (isbackCamera)
{
Vuforia.CameraDevice.Instance.Init(Vuforia.CameraDevice.CameraDirection.CAMERA_FRONT);
Vuforia.CameraDevice.Instance.Start(); isbackCamera = false;
}
else
{
Vuforia.CameraDevice.Instance.Init(Vuforia.CameraDevice.CameraDirection.CAMERA_BACK);
Vuforia.CameraDevice.Instance.Start();
isbackCamera = true;
}
}
Unity QQ交流群:299412191 欢迎对Unity感兴趣的同学加入.
大亮 发布了14 篇原创文章 · 获赞 13 · 访问量 1768 私信 关注标签:Start,private,isbackCamera,Instance,切换,CameraDevice,Vuforia,摄像头 来源: https://blog.csdn.net/a451319296/article/details/104092146