其他分享
首页 > 其他分享> > Vuforia切换前后摄像头

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