Start a new topic

camera switch in Android using unity

Hello,


 I am new with Wikitude but I have worked with Unity. For the project I need to access the front camera for my application. The WikitudeCamera script is no accessible as in its inside the dll file. How can I switch to front camera using C#?


Thanks in advance.


Regrads

Kumar


Thanks for the answer wikitude team 

Hi, 


We're aware of the Android crash when switching to the front camera. A fix will be included in the next update, which should be available soon.


Best regards,

Alexandru

Example Project in Unity Crashes after I switched to front faving camera. From the example I only fix the camera permission, because I use Unity 2018.4. Also from the project I got warning in 'ContinuousRecognitionController.cs'(29,17) warning CS0114 There any way to solve this problem?

Hi, 


You can switch the camera position using the DevicePosition property on the WikitudeCamera.

Here are some additional documentation links:

http://www.wikitude.com/external/doc/documentation/latest/unity/cameracontrolunity.html#script-only-settings

http://www.wikitude.com/external/doc/documentation/latest/Reference/Unity%20API/class_wikitude_1_1_wikitude_camera.html


Additionally, you can check the "Camera Controls - Camera Settings" scene for an example of how to use the Camera APIs.


Best regards,

Alexandru

Login or Signup to post a comment