1. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice
  2. Unity 5.6 is now released.
    Dismiss Notice
  3. Check out all the fixes for 5.5 in patch releases 1 & 2.
    Dismiss Notice
  4. Get further faster with the Unity Plus Accelerator Pack, free for new Unity Plus subscribers for a limited time. Click here for more details.
    Dismiss Notice
  5. Learn how you'll soon be able to publish your games to China in four simple steps with Xiaomi. Sign up now for early access.
    Dismiss Notice

Android - Turn on front camera

Discussion in 'Scripting' started by mortenmoulder, Oct 27, 2013.

  1. mortenmoulder

    mortenmoulder

    Joined:
    Jul 11, 2013
    Posts:
    1
    I am trying to turn on the front camera, as well as changing an object to the front camera. I am messing around with augmented reality, and I am using Vuforia.

    I am trying to turn a mirror into the front camera, so it will change the mirror rectangle into the front camera.

    Here is the current code from the CameraDevice.cs: http://puu.sh/51hfw.txt

    CAMERA_FRONT in the CameraDirection enumeration will turn on the front camera, but I have no idea how to change the object into the front camera. Any help?

    Thanks!