1. Submit bugs to enter our 5.4 Beta Sweepstakes. Read more about it here.
  2. Unity 5.4 public beta is now available for all users. Grab the build and visit the 5.4 beta forum.
  3. Missing a module? More about the new installer in 5.3 here.
  4. 4.7.1 released for Xcode 7.3 support. Thread here.

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!