How do I dynamically change to front camera through a button when the app is running

June 12, 2015 - 12:40am #1

  I'm using Vuforia4.2.3+Unity5 developping AR, What should I do to switch to the front camera when my app is running through b button click?

  I know in the Unity Editor, Ican change the "Camera Direction" attribute of the QCAR Behaviour component. But I cannot get this through C# code?

  Or does anyone has a better solution for that, please tell me.

  Thanks a lot!!!!!!

How do I dynamically change to front camera through a button whe

June 16, 2015 - 7:44pm #2

You'll need to use the methods of the CameraDevice class. See this post for general order of calls:

https://developer.vuforia.com/forum/ios/best-way-switch-back-front-camera-and-back-again#comment-2043633

 

Log in or register to post comments