1. Enter the Microsoft Developer Challenge for a chance to win prizes. Read more about it here.
  2. Enter the Google Play Indie Games Contest in Europe. Read more about it here.
  3. Unity 5.5 is now released.
  4. Become a closed-alpha partner on the new Facebook games platform. Read more about it here.
  5. Get early access to our Google Daydream Technical preview. Click here for more details!

Android - Turn on front camera

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

  1. mortenmoulder

    mortenmoulder

    Joined:
    Jul 11, 2013
    Messages:
    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!